A Suite that works for me is:
import org.junit.runner.RunWith; import org.junit.runners.Suite; import org.junit.runners.Suite.SuiteClasses; ... @RunWith(Suite.class) @SuiteClasses( { MyTest.class }) public class SeleniumSuite { ... }
This helps if you want to run only a subset of the tests defined in the package. What tests do you name? Try refactoring them so that they are called either Test * .java or * Test.java.
Jatin source share