You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rodrigo Jimenez (JIRA)" <ji...@apache.org> on 2017/09/22 10:19:00 UTC

[jira] [Created] (SUREFIRE-1421) no test listed in maven-surefire-report

Rodrigo Jimenez created SUREFIRE-1421:
-----------------------------------------

             Summary: no test listed in maven-surefire-report 
                 Key: SUREFIRE-1421
                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1421
             Project: Maven Surefire
          Issue Type: Bug
          Components: Maven Surefire Report Plugin
    Affects Versions: 2.20.1, 2.19.1
            Reporter: Rodrigo Jimenez
            Priority: Minor


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.
{code}
 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
{code}

does not report any error

I have a test file generated in target/surefire-reports/TEST-...xml
{code}
<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"/>
{code}
and a html report is generated target/site/surefire-report.html
{code}
<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 />
{code}

Currently my pom conf is as follows:
{code}
<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>
{code}



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