You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2005/04/12 12:57:15 UTC

[jira] Created: (MNG-298) [surefire] Add support for passing system properties to JUnit tests

[surefire] Add support for passing system properties to JUnit tests
-------------------------------------------------------------------

         Key: MNG-298
         URL: http://jira.codehaus.org/browse/MNG-298
     Project: m2
        Type: New Feature
  Components: maven-plugins  
    Versions: 2.0-alpha-1    
    Reporter: Vincent Massol
     Fix For: 2.0-alpha-2
 Attachments: maven-surefire-plugin_systemproperties.patch

Some tests require to get some properties to work. This patch adds support for passing system properties to JUnit tests. To use it:

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>1.0-alpha-1</version>
        <configuration>
          <systemProperties>
            <property>
              <name>myproperty</name>
              <value>myvalue</value>
            </property>
          </systemProperties>
        </configuration>
      </plugin>
    </plugins>
  </build>


-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MNG-298) [surefire] Add support for passing system properties to JUnit tests

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-298?page=all ]
     
Brett Porter closed MNG-298:
----------------------------

    Resolution: Fixed

> [surefire] Add support for passing system properties to JUnit tests
> -------------------------------------------------------------------
>
>          Key: MNG-298
>          URL: http://jira.codehaus.org/browse/MNG-298
>      Project: m2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol
>      Fix For: 2.0-alpha-2
>  Attachments: maven-surefire-plugin_systemproperties.patch, maven-surefire-plugin_systemproperties2.patch
>
>
> Some tests require to get some properties to work. This patch adds support for passing system properties to JUnit tests. To use it:
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <version>1.0-alpha-1</version>
>         <configuration>
>           <systemProperties>
>             <property>
>               <name>myproperty</name>
>               <value>myvalue</value>
>             </property>
>           </systemProperties>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-298) [surefire] Add support for passing system properties to JUnit tests

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-298?page=comments#action_31901 ]
     
Vincent Massol commented on MNG-298:
------------------------------------

Please use the second patch as it has debug logs added.

> [surefire] Add support for passing system properties to JUnit tests
> -------------------------------------------------------------------
>
>          Key: MNG-298
>          URL: http://jira.codehaus.org/browse/MNG-298
>      Project: m2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol
>      Fix For: 2.0-alpha-2
>  Attachments: maven-surefire-plugin_systemproperties.patch, maven-surefire-plugin_systemproperties2.patch
>
>
> Some tests require to get some properties to work. This patch adds support for passing system properties to JUnit tests. To use it:
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <version>1.0-alpha-1</version>
>         <configuration>
>           <systemProperties>
>             <property>
>               <name>myproperty</name>
>               <value>myvalue</value>
>             </property>
>           </systemProperties>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Updated: (MNG-298) [surefire] Add support for passing system properties to JUnit tests

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-298?page=history ]

Vincent Massol updated MNG-298:
-------------------------------

    Attachment: maven-surefire-plugin_systemproperties2.patch

Added debug logs

> [surefire] Add support for passing system properties to JUnit tests
> -------------------------------------------------------------------
>
>          Key: MNG-298
>          URL: http://jira.codehaus.org/browse/MNG-298
>      Project: m2
>         Type: New Feature
>   Components: maven-plugins
>     Versions: 2.0-alpha-1
>     Reporter: Vincent Massol
>      Fix For: 2.0-alpha-2
>  Attachments: maven-surefire-plugin_systemproperties.patch, maven-surefire-plugin_systemproperties2.patch
>
>
> Some tests require to get some properties to work. This patch adds support for passing system properties to JUnit tests. To use it:
>   <build>
>     <plugins>
>       <plugin>
>         <artifactId>maven-surefire-plugin</artifactId>
>         <version>1.0-alpha-1</version>
>         <configuration>
>           <systemProperties>
>             <property>
>               <name>myproperty</name>
>               <value>myvalue</value>
>             </property>
>           </systemProperties>
>         </configuration>
>       </plugin>
>     </plugins>
>   </build>

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org