title: Jenkins not running TestNG tests via surefire
body: <p>Have a local set up using Maven and TestNG which builds just fine.  The build is a little odd given that in order for the tests to run, a packaged JAR is needed first.  So in effect the local setup runs</p>
  
  <pre><code>#!/bin/bash
  
  mvn clean package -Dmaven.test.skip.exec=true
  mvn test
  </code></pre>
  
  <p>When run on Jenkins, the clean/package step succeeds as does test, except no tests are actually run:</p>
  
  <pre><code>[workspace] $ mvn -f some_sub_directory/pom.xml test
  [INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building ...-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  [INFO] 
  [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ project ---
  [debug] execute contextualize
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/...
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ project ---
  [INFO] Nothing to compile - all classes are up to date
  [INFO] 
  [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ project ---
  [debug] execute contextualize
  [INFO] Using 'UTF-8' encoding to copy filtered resources.
  [INFO] Copying 1 resource
  [INFO] 
  [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ project ---
  [INFO] Not compiling test sources
  [INFO] 
  [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ project ---
  [INFO] Tests are skipped.
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 2.222s
  [INFO] Finished at: Fri Nov 22 18:34:00 UTC 2013
  [INFO] Final Memory: 11M/89M
  [INFO] ------------------------------------------------------------------------
  Finished: SUCCESS
  </code></pre>
  
  <p>Seems as though the testCompile and test goals in the surefire plugin aren't finding any test classes.</p>
  
  <p>Is there an additional config needed in pom.xml?</p>