You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hlias Mpalasis (JIRA)" <ji...@apache.org> on 2017/06/29 07:32:00 UTC

[jira] [Commented] (SUREFIRE-875) testng-results contains only last suite execute in forkmode = always

    [ https://issues.apache.org/jira/browse/SUREFIRE-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16067913#comment-16067913 ] 

Hlias Mpalasis commented on SUREFIRE-875:
-----------------------------------------

I believe this needs to be re-opened.

I am experiencing same issue.

testng-results.xml always contains the results from last forked execution, replacing the previous one.

As a result, when trying to collect all the results as part of a build server job to produce a custom report, only the last result is available.


> testng-results contains only last suite execute in forkmode = always
> --------------------------------------------------------------------
>
>                 Key: SUREFIRE-875
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-875
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin
>    Affects Versions: 2.12
>         Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
> Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
> OS name: "linux", version: "3.0.0-20-generic", arch: "amd64", family: "unix"
>            Reporter: MichaƂ Kalisz
>         Attachments: misiu.test-0.0.1-SNAPSHOT-test-sources.jar, pom.xml
>
>
> Every fork creates new testng-results.xml by replacing previous one. 
> If there are two tests class - to suite will be created and only last one will be visible in testng-results.xml.
> In attached project:
> Two test classes: 
> SimpleIT, CopyOfCopyOfSimpleIT
> running: mvn verify
> Generates two sites:
> Running pl.misiu.CopyOfCopyOfSimpleIT
> Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNGMapConfigurator@771c8a71
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec
> Running pl.misiu.SimpleIT
> Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNGMapConfigurator@72c53dce
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.326 sec
> In target/failsafe-reports/testng-results.xml
> there is only one test SimpleIT (the last execute site)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)