You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jerome Waibel (JIRA)" <ji...@codehaus.org> on 2008/08/12 17:29:27 UTC

[jira] Created: (SUREFIRE-512) Provided Properties no longer visible in Surefire-Tests

Provided Properties no longer visible in Surefire-Tests
-------------------------------------------------------

                 Key: SUREFIRE-512
                 URL: http://jira.codehaus.org/browse/SUREFIRE-512
             Project: Maven Surefire
          Issue Type: Bug
    Affects Versions: 2.4.3
         Environment: maven 2.0.9, windows xp, surefire-plugin 2.4.3
            Reporter: Jerome Waibel


I have a super pom and several modules with code and tests. I run the super pom with some commandline like

mvn -Dmy.environment=foo test

which calls all tests in the modules.

In the tests I refer to the goven property (by using spring's property placeholder). Up to surefire 2.4.2 all tests ran fine, since 2.4.3 the property isn't visible any more in the tests (${my.environment} is simply unknown).


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

        

[jira] Reopened: (SUREFIRE-512) Provided Properties no longer visible in Surefire-Tests

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann reopened SUREFIRE-512:
----------------------------------------


> Provided Properties no longer visible in Surefire-Tests
> -------------------------------------------------------
>
>                 Key: SUREFIRE-512
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-512
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>         Environment: maven 2.0.9, windows xp, surefire-plugin 2.4.3
>            Reporter: Jerome Waibel
>
> I have a super pom and several modules with code and tests. I run the super pom with some commandline like
> mvn -Dmy.environment=foo test
> which calls all tests in the modules.
> In the tests I refer to the goven property (by using spring's property placeholder). Up to surefire 2.4.2 all tests ran fine, since 2.4.3 the property isn't visible any more in the tests (${my.environment} is simply unknown).

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

        

[jira] Closed: (SUREFIRE-512) Provided Properties no longer visible in Surefire-Tests

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed SUREFIRE-512.
--------------------------------------

    Resolution: Not A Bug

> Provided Properties no longer visible in Surefire-Tests
> -------------------------------------------------------
>
>                 Key: SUREFIRE-512
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-512
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>         Environment: maven 2.0.9, windows xp, surefire-plugin 2.4.3
>            Reporter: Jerome Waibel
>
> I have a super pom and several modules with code and tests. I run the super pom with some commandline like
> mvn -Dmy.environment=foo test
> which calls all tests in the modules.
> In the tests I refer to the goven property (by using spring's property placeholder). Up to surefire 2.4.2 all tests ran fine, since 2.4.3 the property isn't visible any more in the tests (${my.environment} is simply unknown).

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

        

[jira] Closed: (SUREFIRE-512) Provided Properties no longer visible in Surefire-Tests

Posted by "Jerome Waibel (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/SUREFIRE-512?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jerome Waibel closed SUREFIRE-512.
----------------------------------

    Resolution: Fixed

OK, that is working fine. Thanks for the help.

> Provided Properties no longer visible in Surefire-Tests
> -------------------------------------------------------
>
>                 Key: SUREFIRE-512
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-512
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>         Environment: maven 2.0.9, windows xp, surefire-plugin 2.4.3
>            Reporter: Jerome Waibel
>
> I have a super pom and several modules with code and tests. I run the super pom with some commandline like
> mvn -Dmy.environment=foo test
> which calls all tests in the modules.
> In the tests I refer to the goven property (by using spring's property placeholder). Up to surefire 2.4.2 all tests ran fine, since 2.4.3 the property isn't visible any more in the tests (${my.environment} is simply unknown).

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

        

[jira] Commented: (SUREFIRE-512) Provided Properties no longer visible in Surefire-Tests

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/SUREFIRE-512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144821#action_144821 ] 

Benjamin Bentmann commented on SUREFIRE-512:
--------------------------------------------

This change was introduced to fix SUREFIRE-491.

You could try a configuration like the following to achieve your goal
{code:xml}
<systemProperties>
  <property>
    <name>my.environment</name>
    <value>${my.environment}</value>
  </property>
</systemProperties>
{code}
i.e. use Surefire's {{systemProperties}} parameter to explicitly pass properties through to the tests.

> Provided Properties no longer visible in Surefire-Tests
> -------------------------------------------------------
>
>                 Key: SUREFIRE-512
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-512
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>         Environment: maven 2.0.9, windows xp, surefire-plugin 2.4.3
>            Reporter: Jerome Waibel
>
> I have a super pom and several modules with code and tests. I run the super pom with some commandline like
> mvn -Dmy.environment=foo test
> which calls all tests in the modules.
> In the tests I refer to the goven property (by using spring's property placeholder). Up to surefire 2.4.2 all tests ran fine, since 2.4.3 the property isn't visible any more in the tests (${my.environment} is simply unknown).

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