You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dan Tran (JIRA)" <ji...@codehaus.org> on 2008/08/15 09:24:26 UTC

[jira] Issue Comment Edited: (SUREFIRE-513) Surefire Integration Test no longer valid when run with Maven 2.0.9+

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

danttran edited comment on SUREFIRE-513 at 8/15/08 2:22 AM:
------------------------------------------------------------

I think i have a solution for this,

Have the surefire-integration-tests/pom.xml to pass surefire.version, extracted from ${project.version} to surefire plugin, as system property. 

Have the main test to pass down the version to all of its maven test projects.

      was (Author: danttran):
    
I think i have a solution for this,

Have the surefire-integration-test/pom.xml to pass surefire.version, extracted from ${project.version} to as system property,
have the main test to pass down the version down to all of its maven test projects.
  
> Surefire Integration Test no longer valid when run with Maven 2.0.9+
> --------------------------------------------------------------------
>
>                 Key: SUREFIRE-513
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-513
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.4.3
>         Environment: windows, unix
>            Reporter: Dan Tran
>            Assignee: Dan Tran
>
> The current surefire-intergration-test module does not define version tag in all of its test poms and therefore starting with maven 2.0.9, the integration tests use the implicit surefire 2.4.2.
> This means it does not run with dev version currently  at  2.5-SNAPSHOT . 
> Also any new features( ie SUREFIRE-511) cannot be tested either, it wont run with 2.4.2
> below is a list of fail tests that trigger this finding.
> Here is the summary 
> Running org.apache.maven.surefire.its.TestNgSuiteXmlTest
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.89 sec <<< FA
> ILURE!
> Running org.apache.maven.surefire.its.TestNgSuiteXmlSingleTest
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.422 sec <<< FA
> ILURE!
> On Linux
> Failed tests:
>   testTestNGSuite(org.apache.maven.surefire.its.TestNgSuiteXmlSingleTest)
> Tests in error:
>   testTestNgSuiteXmlForkModeAlways(org.apache.maven.surefire.its.TestNgSuiteXmlT
> est)

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