Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Incomplete
-
2.19.1, 2.20.1
-
None
-
None
Description
Dear all, I've been struggling already a couple of hours to get a html test report with no lucky
is listing zero test when in the xml file there are 7 listed. What I'm doing wrong.
mvn -X test -Dmaven.checkstyle.skip=true -Dmaven.surefire.failIfNoTests=false -Dmaven.surefire.parallelTestsTimeoutInSeconds=60 -Dmaven.surefire.parallelTestsTimeoutForcedInSeconds=60 -Dmaven.test.failure.ignore=true -DreportsDirectories=target/surefire-reports/ -DskipSurefireReport=false -DalwaysGenerateSurefireReport=true -DshowSuccess=true -DlinkXRef=false
does not report any error
I have a test file generated in target/surefire-reports/TEST-...xml
<testcase name="testTranceiverSendToServer" classname="com.siemens.remu.sockets.SocketTranceiverTest" time="4.416"/> <testcase name="testTranceiverReceiveFromServer" classname="com.siemens.remu.sockets.SocketTranceiverTest" time="3.019"/> <testcase name="testInvalidHost" classname="com.siemens.remu.sockets.SocketTranceiverTest" time="0.014"/> <testcase name="testInvalidPortClient" classname="com.siemens.remu.sockets.SocketTranceiverTest" time="0.001"/> <testcase name="testInvalidPortServer" classname="com.siemens.remu.sockets.SocketTranceiverTest" time="0.001"/> <testcase name="testSocketTranceiverClient" classname="com.siemens.remu.sockets.SocketTranceiverTest" time="2.017"/> <testcase name="testTranceiverTimeout" classname="com.siemens.remu.sockets.SocketTranceiverTest" time="0.009"/>
and a html report is generated target/site/surefire-report.html
<div class="section"> <h2><a name="Surefire_Report"></a>Surefire Report</h2></div> <div class="section"> <h2><a name="Summary"></a>Summary</h2><a name="Summary"></a><br /> <table border="1" class="bodyTable"> <tr class="a"> <th>Tests</th> <th>Errors </th> <th>Failures</th> <th>Skipped</th> <th>Success Rate</th> <th>Time</th></tr> <tr class="b"> <td>0</td> <td>0</td> <td>0</td> <td>0</td> <td>0%</td> <td>0</td></tr></table><br />
Currently my pom conf is as follows:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.20.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.20.1</version> <executions> <execution> <phase>test</phase> <goals> <goal>report-only</goal> </goals> </execution> </executions> </plugin>