Created: (SUREFIRE-550) Per-test or test group system properties

View: New views
3 Messages — Rating Filter:   Alert me  

Created: (SUREFIRE-550) Per-test or test group system properties

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Per-test or test group system properties
----------------------------------------

                 Key: SUREFIRE-550
                 URL: http://jira.codehaus.org/browse/SUREFIRE-550
             Project: Maven Surefire
          Issue Type: Improvement
          Components: process forking
    Affects Versions: 2.4.3
            Reporter: benson margulies


As a user of surefire, I want to be able to specify different system properties for different tests, so that I don't have to make extra projects just to organize these tests. For example, if I need to run a particular test with -Dfile.encoding set to a non-default value, I currently appear to need to create an entire maven project to contain this.


--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Commented: (SUREFIRE-550) Per-test or test group system properties

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/SUREFIRE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196955#action_196955 ]

Brett Porter commented on SUREFIRE-550:
---------------------------------------

is it just for this example or are there other system properties? Can they be set as part of the test rather than from the command line?

This would make the configuration a little complex.

> Per-test or test group system properties
> ----------------------------------------
>
>                 Key: SUREFIRE-550
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-550
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: process forking
>    Affects Versions: 2.4.3
>            Reporter: Benson Margulies
>
> As a user of surefire, I want to be able to specify different system properties for different tests, so that I don't have to make extra projects just to organize these tests. For example, if I need to run a particular test with -Dfile.encoding set to a non-default value, I currently appear to need to create an entire maven project to contain this.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Commented: (SUREFIRE-550) Per-test or test group system properties

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/SUREFIRE-550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=196987#action_196987 ]

Benson Margulies commented on SUREFIRE-550:
-------------------------------------------

I think my best reason is that many tests may share one property that they read, and having to Before it in all of them gets messy.


> Per-test or test group system properties
> ----------------------------------------
>
>                 Key: SUREFIRE-550
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-550
>             Project: Maven Surefire
>          Issue Type: Improvement
>          Components: process forking
>    Affects Versions: 2.4.3
>            Reporter: Benson Margulies
>
> As a user of surefire, I want to be able to specify different system properties for different tests, so that I don't have to make extra projects just to organize these tests. For example, if I need to run a particular test with -Dfile.encoding set to a non-default value, I currently appear to need to create an entire maven project to contain this.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira