I am trying to invoke a JUnit Test suite using the API. I know that you can suite up test classes using the following:
@RunWith(Suite.class) @Suite.SuiteClas
You can also that using command prompt as
java org.junit.runner.JUnitCore test class name
Just specify the name of the suite class to JUnitCore:
Computer computer = new Computer(); JUnitCore jUnitCore = new JUnitCore(); jUnitCore.run(computer, MySuite.class);