Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
3.0.0-M7
-
None
-
None
Description
We expect the format of surefire .xml report for test failing in all rerun to be as mentioned in https://maven.apache.org/surefire/maven-surefire-plugin/examples/rerun-failing-tests.html#:~:text=2)-,The%20test%20fails%20in%20all%20of%20the%20re%2Druns%3A,-failure%20and%20error
But, I can see the following format for my run
rerunFailingTestsCount = 2
<testcase name=".." classname=".." time="0.1"> <failure type=""> first failure stack trace </failure> <rerunFailure type="assertion exception"> <stackTrace>rerun failure stack trace</stackTrace> </rerunFailure> <rerunFailure type="assertion exception"> <stackTrace>rerun failure stack trace</stackTrace> <system-out> rerun failure </system-out> </rerunFailure> </testcase>
we have only one <system-out> in last rerunFailure. <system-out> is missing under <testcase> and first <rerunFailure>
surefire-plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M7</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit47</artifactId>
<version>3.0.0-M7</version>
</dependency>
</dependencies>
<configuration>
<systemPropertyVariables>
<sun.net.http.allowRestrictedHeaders>true</sun.net.http.allowRestrictedHeaders>
</systemPropertyVariables>
<parallel>all</parallel>
<threadCount>4</threadCount>
<forkCount>1C</forkCount>
<groups>${tests.groups}</groups>
<rerunFailingTestsCount>2</rerunFailingTestsCount>
</configuration>
</plugin>
Why is it not compliant? Can the issue be fixed?
Please let me know if you need any more information.