title: Get ScalaTest to run my tests from Maven
body: <p>I added this to my pom.xml, straight from <a href="http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin" rel="nofollow noreferrer">the documentation</a>:</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;version&gt;2.7&lt;/version&gt;
      &lt;configuration&gt;
        &lt;skipTests&gt;true&lt;/skipTests&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;org.scalatest&lt;/groupId&gt;
      &lt;artifactId&gt;scalatest-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;configuration&gt;
        &lt;reportsDirectory&gt;${project.build.directory}/surefire-reports&lt;/reportsDirectory&gt;
        &lt;junitxml&gt;.&lt;/junitxml&gt;
        &lt;filereports&gt;TestSuite.txt&lt;/filereports&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
        &lt;execution&gt;
          &lt;id&gt;test&lt;/id&gt;
          &lt;goals&gt;
            &lt;goal&gt;test&lt;/goal&gt;
          &lt;/goals&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>Running <code>mvn test</code> gives me:</p>
  
  <pre><code>Discovery starting.
  Discovery completed in 265 milliseconds.
  Run starting. Expected test count is: 0
  DiscoverySuite:
  Run completed in 283 milliseconds.
  Total number of tests run: 0
  Suites: completed 1, aborted 0
  Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
  No tests were executed.
  </code></pre>
  
  <p>However, there are several tests under src/test/scala which should have been discovered and ran.</p>
  
  <p>I even tried running <code>mvn test-compile compile</code>, just to see if anything showed up. The result is as expected:</p>
  
  <pre><code>[INFO] Nothing to compile - all classes are up to date
  </code></pre>
  
  <p>So, how come they are not discovered? My files are all named *Test.scala, and are written like in the <a href="http://www.scalatest.org/user_guide/writing_your_first_test" rel="nofollow noreferrer">scalatest documentation</a>.</p>