title: Running a JUnit4 Test Suite in Maven using maven-failsafe-plugin
body: <p>I've got a JUnit 4 test suite that contains a number of test classes in the order they need to be run (our Integration tests need to be run in a certain order). </p>
  
  <p>If I use the maven-failsafe-plugin without any configuration it will run the test but not in the correct order. However, If I set the plugin to run the test suite no tests are run.</p>
  
  <p>Is it possible to run a test suite using the failsafe plugin? if so, where have I gone wrong!! </p>
  
  <p>The code is below:</p>
  
  <pre class="lang-java prettyprint-override"><code>@RunWith(Suite.class)
  @SuiteClasses({ 
      TestCase1.class,
      TestCase2.class, 
         ...
      TestCaseN.class,
  })
  public class IntegrationSuite {
      //Do Nothing.
  }
  </code></pre>
  
  <p>and from pom.xml: </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.9&lt;/version&gt;
      &lt;configuration&gt;
          &lt;includes&gt;
              &lt;include&gt;IntegrationSuite.java&lt;/include&gt;
          &lt;/includes&gt;
      &lt;/configuration&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;id&gt;integration-test&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;integration-test&lt;/goal&gt;
              &lt;/goals&gt;
      &lt;/execution&gt;
      &lt;execution&gt;
          &lt;id&gt;verify&lt;/id&gt;
          &lt;goals&gt;
              &lt;goal&gt;verify&lt;/goal&gt;
          &lt;/goals&gt;
      &lt;/execution&gt;
  &lt;/executions&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Thanks :)</p>