0

I have two TestSuite classes (TestSuiteOne and TestSuiteTwo)

They look so:

import org.junit.runners.Suite;
import org.junit.runner.RunWith;

@RunWith(Suite.class)
@Suite.SuiteClasses({TestClass1.class, TestClass2.class})
public class TestSuiteOne {
  //nothing
}

How can I run them in parallel? One I run so $mvn class test -Dtest=TestSuiteOne

But how do I run them at the same time?

Pavel Bobrov
  • 1
  • 1
  • 2

1 Answers1

0

So here's hack! You create Suites via TestNG i.e mention the classes in TestNG.xml and set the junit option as true in that xml. Next You configure maven to run testng test suites in parallel as mentioned here: maven-parallel-suites

Mrunal Gosar
  • 4,595
  • 13
  • 48
  • 71