Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.19.1
-
None
-
None
Description
In a Maven project with the setting "<reuseForks>false</reuseForks>" and TestNg, the file testng-result.xml gets overwritten by the last test.
I somehow understand why it is difficult to avoid this by design of fork, but a workaround solution, as suggested by SUREFIRE-1018 or SUREFIRE-446, is to use the individual TEST-[className].xml files.
However, if I use a Jenkins plugin like testng, I cannot make him ingest these files, as they do not have the same structure as testng-result.xml. This is a bug of testng, rather than the Jenkins plugin testng. Couldn't we make testng-result-[className].xml, for each test, with the testng-result.xml structure? Otherwise, the Jenkins plugin https://wiki.jenkins-ci.org/display/JENKINS/testng-plugin is completely not usable.
Thank you.
Attachments
Issue Links
- duplicates
-
SUREFIRE-446 Surefire fails to capture TestNG results when forkMode=always
- Closed
-
SUREFIRE-875 testng-results contains only last suite execute in forkmode = always
- Closed
-
SUREFIRE-1018 surefire-reports overwrite each other when using forking
- Closed