title: Why my test are being ignored generating coverage report with Jacoco and Maven
body: <p>I have the follwowing POM file:</p>
  <pre><code>
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.manning.junitbook&lt;/groupId&gt;
      &lt;artifactId&gt;ch13-continuous&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
      &lt;name&gt;ch13-continuous&lt;/name&gt;
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
  
          &lt;sonar.coverage.jacoco.xmlReportPaths&gt;target\site\jacoco.xml&lt;/sonar.coverage.jacoco.xmlReportPaths&gt;
          &lt;sonar.junit.reportPaths&gt;target\surefire-reports&lt;/sonar.junit.reportPaths&gt;
  
      &lt;/properties&gt;
      &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
          &lt;groupId&gt;org.jacoco&lt;/groupId&gt;
          &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;0.8.5&lt;/version&gt;
          &lt;executions&gt;
              &lt;execution&gt;
                  &lt;id&gt;report&lt;/id&gt;
                  &lt;goals&gt;
                      &lt;goal&gt;report&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;phase&gt;verify&lt;/phase&gt;
              &lt;/execution&gt;
          &lt;/executions&gt;
         &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.22.1&lt;/version&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-api&lt;/artifactId&gt;
              &lt;version&gt;5.6.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.junit.jupiter&lt;/groupId&gt;
              &lt;artifactId&gt;junit-jupiter-engine&lt;/artifactId&gt;
              &lt;version&gt;5.6.0&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  
  </code></pre>
  <p>I have created some tests. One of them, for example, test some functions from Passenger class. It code is the following:</p>
  <pre><code>package es.ull.passengers;
  
  import es.ull.flights.Flight;
  import org.junit.jupiter.api.Test;
  
  import static org.junit.jupiter.api.Assertions.assertEquals;
  
  public class PassengerTest {
      Passenger Pasajero = new Passenger(&quot;1&quot;,&quot;Paco&quot;,&quot;US&quot;);
      Flight testing = new Flight(&quot;AA9020&quot;, 100);
  
  
      @Test
      public void test_get_Name(){
          System.out.println(&quot;Testing get Name...&quot;);
          assertEquals(&quot;Paco&quot;, Pasajero.getName());
      }
  
      @Test
      public void test_get_Identifier(){
          System.out.println(&quot;Testing get Identifier...&quot;);
          assertEquals(&quot;1&quot;, Pasajero.getIdentifier());
      }
  
      @Test
      public void test_get_CountryCode(){
          System.out.println(&quot;Testing get Country Code...&quot;);
          assertEquals(&quot;US&quot;, Pasajero.getCountryCode());
      }
  
      @Test
      public void test_Flight(){
          System.out.println(&quot;Testing get Flight...&quot;);
          Pasajero.setFlight(testing);
          assertEquals(testing, Pasajero.getFlight());
      }
  
      @Test
      public void test_join_flight(){
          System.out.println(&quot;Testing join Flight...&quot;);
          Flight testing2 = new Flight(&quot;AA9023&quot;, 200);
          Pasajero.joinFlight(testing2);
          assertEquals(testing2, Pasajero.getFlight());
      }
  
      @Test
      public void test_to_string(){
          System.out.println(&quot;Testing toString...&quot;);
          assertEquals(&quot;Passenger Paco with identifier: 1 from US&quot;, Pasajero.toString());
      }
  }
  </code></pre>
  <p>When I do &quot;mvn verify&quot;, it generates the index.xml on targe/site. However, when I checked it, it looks like this:
  <a href="https://i.stack.imgur.com/H90UX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H90UX.png" alt="enter image description here" /></a></p>
  <p>So, I want to know why is this happening. Why isn´t considering my tests?? Here is the console output:</p>
  <pre><code>[INFO] Scanning for projects...
  [INFO] 
  [INFO] ---------------&lt; com.manning.junitbook:ch13-continuous &gt;----------------
  [INFO] Building ch13-continuous 1.0-SNAPSHOT
  [INFO] --------------------------------[ jar ]---------------------------------
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ch13-continuous ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory C:\Users\jesus\Downloads\Airport\src\main\resources
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ch13-continuous ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ch13-continuous ---
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 1 resource
  [INFO] 
  [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ch13-continuous ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ ch13-continuous ---
  [INFO] 
  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] Running FlightTest
  Testing number of passengers...
  Testing removing Passenger...
  Testing adding Passenger...
  Testing flight number...
  [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 s - in FlightTest
  [INFO] Running PassengerTest
  Testing get Flight...
  Testing toString...
  Testing get Country Code...
  Testing get Name...
  Testing get Identifier...
  Testing join Flight...
  [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in PassengerTest
  [INFO] 
  [INFO] Results:
  [INFO] 
  [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0
  [INFO] 
  [INFO] 
  [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ ch13-continuous ---
  [INFO] 
  [INFO] --- jacoco-maven-plugin:0.8.5:report (report) @ ch13-continuous ---
  [INFO] Loading execution data file C:\Users\jesus\Downloads\Airport\target\jacoco.exec
  [INFO] Analyzed bundle 'ch13-continuous' with 2 classes
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  3.520 s
  [INFO] Finished at: 2020-12-12T13:27:22Z
  [INFO] ------------------------------------------------------------------------
  </code></pre>