I'm building automation testing for web application by using JUnit 4.9 and Selenium Webdriver. It's time consuming. So I'm trying to experiment with ParallelComputer.
I'm wondering how can I get result of each test. In my current code below, it will run as one test and will pass even though there's an assertion error in one of the test classes. I'm new to the framework and parallel. Thanks!
public class ParallelComputerTest
{
@Test
public void test()
{
Class[] cls={19 test classes in here};
//Parallel among classes
JUnitCore.runClasses(ParallelComputer.classes(), cls);
}
}