title: Running JUnit parameterized tests in Parallel in Eclipse
body: <p>I was wondering if it's possible to run JUnit tests programatically in parallel when defining parameterized tests. The idea would be to then be able to run them just as regular JUnit tests in Eclipse.</p>
  
  <p>My current code is something similar to:</p>
  
  <pre><code>@RunWith(Parameterized.class)
  public class JUnitDivideClassTests {
  
      @Parameters
      public static Collection&lt;Object[]&gt; data() {
  
          return Arrays.asList(new Object[][] { { 12, 3, 4 }, { 12, 2, 6}, { 12, 4, 3 }});
      }
  
      private int n;
      private int d;
      private int q;
  
      public JUnitDivideClassTests(int n, int d, int q) {
  
          this.n = n;
          this.d = d;
          this.q = q;
      }
  
      @Test
      public void test() {
  
          Assert.assertEquals(q, n / d);
      }
  }
  </code></pre>
  
  <p>as found @ <a href="http://codemadesimple.wordpress.com/2012/01/17/paramtest_with_junit/">http://codemadesimple.wordpress.com/2012/01/17/paramtest_with_junit/</a></p>