Even though this is a weird test suite setup, I've seen this in the wild:
@RunWith(Suite.class)
@SuiteClasses({ SubTestSuite.class, FooTest.class })
public class MasterTestSuite {
}
@RunWith(Suite.class)
@SuiteClasses({ FooTest.class })
public class SubTestSuite {
}
public class FooTest {
@Test
public void testSomething() {
fail("Not yet implemented");
}
}
Running the MasterTestSuite will execute testSomething twice. The JUnit progress meter, however, will show 1 / 2, indicating the one of two tests have been executed.
Even though this is a weird test suite setup, I've seen this in the wild:
Running the
MasterTestSuitewill executetestSomethingtwice. The JUnit progress meter, however, will show1 / 2, indicating the one of two tests have been executed.