I'm still pretty new to Java programming and JUnit testing. I am using NetBeans 6.9.1, which comes with junit-4.5 (but I added junit-4.8.2 to my library).
I have several test classes, and in each class there are a number of @Test methods.
When I run a specific test class, it runs through each @Test method one at a time. I also created a test suite with
@RunWith(Suite.class) @Suite.SuiteClasses(value = { TestClassA.class, TestClassB.class, TestClassC.class}) public class NewTestSuite { }
which will go through each of my test classes and in each run each @Test method.
My question is: is it possible for me to run test classes at the same time? Or, within each test class, can @Test methods be run simultaneously?
This will allow me to run all the tests much faster than the classes and methods run once.
Thanks!
source share