title: Maven reports it ran the test suite but did not run any of my JUnit tests
body: <p>I am trying to test a java app from Maven using JUnit. </p>
  
  <p>I have the following POM (relevant section only).</p>
  
  <pre><code>&lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.apache.maven.surefire&lt;/groupId&gt;
                          &lt;artifactId&gt;surefire-junit4&lt;/artifactId&gt;
                          &lt;version&gt;2.7.2&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
                  &lt;configuration&gt;
                      &lt;includes&gt;
                          &lt;include&gt;**/*Test.java&lt;/include&gt;
                      &lt;/includes&gt;
                  &lt;/configuration&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>It seems "something" is being run. Here is the output from "mvn -X test":</p>
  
  <pre><code>Running TestSuite
  Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.769 sec
  
  Results :
  
  
  Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
  </code></pre>
  
  <p>Notice the "Running TestSuite". However it still fails to find my test methods. I suspect it might have to do with this:</p>
  
  <pre><code>[DEBUG] Adding to surefire test classpath: /home/julien/.m2/repository/org/apache/maven/surefire/surefire-testng/2.4.3/surefire-testng-2.4.3.jar
  [DEBUG] Adding to surefire test classpath: /home/julien/.m2/repository/org/apache/maven/maven-artifact/2.0/maven-artifact-2.0.jar
  [DEBUG] Adding to surefire test classpath: /home/julien/.m2/repository/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
  [DEBUG] Adding to surefire test classpath: /home/julien/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
  [DEBUG] Adding to surefire test classpath: /home/julien/.m2/repository/org/apache/maven/surefire/surefire-api/2.4.3/surefire-api-2.4.3.jar
  </code></pre>
  
  <p>It says it is using version 3.8.1 of Junit...</p>
  
  <p>However it goes on to say:</p>
  
  <p>Test Classpath :</p>
  
  <pre><code> [DEBUG]   /home/julien/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar
  </code></pre>
  
  <p>I wonder what is the difference between the "surefire test classpath" and the "Test classpath"?</p>
  
  <p>Here is how my test method is named and annotated:</p>
  
  <pre><code> @Test
      public void test() {
  </code></pre>
  
  <p>...</p>
  
  <p>It is located here:</p>
  
  <pre><code>src/test/java/com/cheetah/web/pages
  </code></pre>
  
  <p>Any idea what I am getting wrong?</p>
  
  <p>Here is the effective POM:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;parent&gt;
      &lt;artifactId&gt;cheetah&lt;/artifactId&gt;
      &lt;groupId&gt;com.cheetah&lt;/groupId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;/parent&gt;
    &lt;groupId&gt;com.cheetah&lt;/groupId&gt;
    &lt;artifactId&gt;cheetah-web&lt;/artifactId&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;name&gt;cheetah-web&lt;/name&gt;
    &lt;build&gt;
      &lt;sourceDirectory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/src/main/java&lt;/sourceDirectory&gt;
      &lt;scriptSourceDirectory&gt;src/main/scripts&lt;/scriptSourceDirectory&gt;
      &lt;testSourceDirectory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/src/test/java&lt;/testSourceDirectory&gt;
      &lt;outputDirectory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/target/classes&lt;/outputDirectory&gt;
      &lt;testOutputDirectory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/target/test-classes&lt;/testOutputDirectory&gt;
      &lt;resources&gt;
        &lt;resource&gt;
          &lt;mergeId&gt;resource-2&lt;/mergeId&gt;
          &lt;directory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/src/main/java&lt;/directory&gt;
          &lt;includes&gt;
            &lt;include&gt;**/*.tml&lt;/include&gt;
            &lt;include&gt;**/*.properties&lt;/include&gt;
          &lt;/includes&gt;
        &lt;/resource&gt;
        &lt;resource&gt;
          &lt;mergeId&gt;resource-3&lt;/mergeId&gt;
          &lt;directory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/src/main/resources&lt;/directory&gt;
          &lt;includes&gt;
            &lt;include&gt;**/*.xml&lt;/include&gt;
            &lt;include&gt;**/*.properties&lt;/include&gt;
          &lt;/includes&gt;
        &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;testResources&gt;
        &lt;testResource&gt;
          &lt;mergeId&gt;resource-1&lt;/mergeId&gt;
          &lt;directory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/src/test/resources&lt;/directory&gt;
        &lt;/testResource&gt;
      &lt;/testResources&gt;
      &lt;directory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/target&lt;/directory&gt;
      &lt;finalName&gt;cheetah-web-1.0-SNAPSHOT&lt;/finalName&gt;
      &lt;pluginManagement&gt;
        &lt;plugins&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
            &lt;version&gt;1.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2-beta-4&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.0.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.1&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-deploy-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-ear-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-ejb-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-install-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.5&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-plugin-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.5&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-rar-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.0-beta-8&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-site-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.0&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-source-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.0.4&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.4.3&lt;/version&gt;
          &lt;/plugin&gt;
          &lt;plugin&gt;
            &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.1-beta-1&lt;/version&gt;
          &lt;/plugin&gt;
        &lt;/plugins&gt;
      &lt;/pluginManagement&gt;
      &lt;plugins&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.0.2&lt;/version&gt;
          &lt;configuration&gt;
            &lt;source&gt;1.6&lt;/source&gt;
            &lt;target&gt;1.6&lt;/target&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.1-beta-1&lt;/version&gt;
        &lt;/plugin&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-help-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.1.1&lt;/version&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;repositories&gt;
      &lt;repository&gt;
        &lt;id&gt;java.net&lt;/id&gt;
        &lt;url&gt;http://download.java.net/maven/1&lt;/url&gt;
        &lt;layout&gt;legacy&lt;/layout&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
        &lt;name&gt;Java.net Repository for Maven&lt;/name&gt;
        &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;id&gt;jboss&lt;/id&gt;
        &lt;name&gt;jboss&lt;/name&gt;
        &lt;url&gt;http://repository.jboss.org/maven2/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;releases&gt;
          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
        &lt;/releases&gt;
        &lt;snapshots&gt;
          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;jboss-public-repository-group&lt;/id&gt;
        &lt;name&gt;JBoss Public Maven Repository Group&lt;/name&gt;
        &lt;url&gt;https://repository.jboss.org/nexus/content/groups/public-jboss/&lt;/url&gt;
      &lt;/repository&gt;
      &lt;repository&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;Maven Repository Switchboard&lt;/name&gt;
        &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
      &lt;/repository&gt;
    &lt;/repositories&gt;
    &lt;pluginRepositories&gt;
      &lt;pluginRepository&gt;
        &lt;releases&gt;
          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
        &lt;/releases&gt;
        &lt;snapshots&gt;
          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;jboss-public-repository-group&lt;/id&gt;
        &lt;name&gt;JBoss Public Maven Repository Group&lt;/name&gt;
        &lt;url&gt;https://repository.jboss.org/nexus/content/groups/public-jboss/&lt;/url&gt;
      &lt;/pluginRepository&gt;
      &lt;pluginRepository&gt;
        &lt;releases&gt;
          &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
        &lt;/releases&gt;
        &lt;snapshots&gt;
          &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;/snapshots&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;name&gt;Maven Plugin Repository&lt;/name&gt;
        &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
      &lt;/pluginRepository&gt;
    &lt;/pluginRepositories&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.cheetah&lt;/groupId&gt;
        &lt;artifactId&gt;cheetah-domain&lt;/artifactId&gt;
        &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.cheetah&lt;/groupId&gt;
        &lt;artifactId&gt;cheetah-service&lt;/artifactId&gt;
        &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.tapestry&lt;/groupId&gt;
        &lt;artifactId&gt;tapestry-core&lt;/artifactId&gt;
        &lt;version&gt;5.2.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.tapestry&lt;/groupId&gt;
        &lt;artifactId&gt;tapestry-beanvalidator&lt;/artifactId&gt;
        &lt;version&gt;5.2.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.tapestry&lt;/groupId&gt;
        &lt;artifactId&gt;tapestry-spring&lt;/artifactId&gt;
        &lt;version&gt;5.2.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.apache.tapestry&lt;/groupId&gt;
        &lt;artifactId&gt;tapestry-test&lt;/artifactId&gt;
        &lt;version&gt;5.2.6&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.springframework&lt;/groupId&gt;
        &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
        &lt;version&gt;3.0.5.RELEASE&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.easymock&lt;/groupId&gt;
        &lt;artifactId&gt;easymock&lt;/artifactId&gt;
        &lt;version&gt;2.5.2&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;javax&lt;/groupId&gt;
        &lt;artifactId&gt;javaee-web-api&lt;/artifactId&gt;
        &lt;version&gt;6.0&lt;/version&gt;
        &lt;scope&gt;provided&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;4.8.2&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;reporting&gt;
      &lt;outputDirectory&gt;/home/julien/Documents/donnees/projets/site-emploi-finance/java/cheetah/web/target/site&lt;/outputDirectory&gt;
    &lt;/reporting&gt;
  &lt;/project&gt;
  </code></pre>