title: Execute multiple TestNG suites in parallel
body: <p>I've seen documentation that says <a href="http://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html#Running_tests_in_parallel" rel="nofollow">you can run TestNG classes/methods/both in parallel</a>. I was curious if there is some configuration (presumably in the maven-surefire-plugin in the pom) where we could something to the effect of </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;configuration&gt;
    &lt;parallel&gt;suites&lt;/parallel&gt;
   &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>If not, are there any clever workarounds to achieve something similar? </p>
  
  <p>Ex:if I have 5 suites (suite1.xml, suite2.xml, suite3.xml etc)</p>
  
  <p>Each of these suites contains 3 classes (suite1 : class1a, class1b, class1c; suite2 : class2a, class2b, etc) </p>
  
  <p>I could technically annotate class1a, class1b, and class1c as a "Group1" group. Then I could do something similar for "Group2" and "Group3". Could I then go ahead try to execute these <em>groups</em> in parallel (achieving a similar effect as running the suites in parallel)? </p>
  
  <p>Alternatively, is there a way to partition the suites in some way to run on different JVM processes <a href="http://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html" rel="nofollow">by forking the tests</a>?</p>