title: Jenkins and JUnit annotations
body: <p>I´m having some issues with my test suite and Jenkins. </p>
  
  <p>My TestSuite looks simply like this:</p>
  
  <pre><code>@RunWith(Suite.class)
  @SuiteClasses( { CompanyRepositoryTest.class,
  StudentRepositoryTest.class })
  public class ServiceTestSuite {}
  </code></pre>
  
  <p>Running this test suite on localhost works like a charm, and a total of 7 tests show as successful. However when the test suite is run by Jenkins, it says that no tests could be found:</p>
  
  <pre><code>junit.framework.AssertionFailedError: No tests found in com.example.suite.ServiceTestSuite
  </code></pre>
  
  <p>I´m assuming that this has something to do with the annotations not being picked up by Jenkins. Can I do something to rectify this problem?</p>
  
  <p>EDIT: 
  This is the test part from our Ant build.xml. </p>
  
  <pre><code>    &lt;junit fork="yes" printsummary="withOutAndErr" &gt;
          &lt;formatter type="xml"/&gt;
          &lt;test name="test.ibm.teknikspranget.suite.ServiceTestSuite" todir="${junit.output.dir}"/&gt;
          &lt;classpath refid="compile.classpath"/&gt;
      &lt;/junit&gt;
  </code></pre>
  
  <p>So we´re actually trying to run the testsuite from Ant. 
  Should we rather run each individual test? It looks like we´re running Ant 1.8.2 with Jenkins, so that shouldn´t be a problem.</p>