How to create a new suit with only selected tests from other suite
posted 4 years ago
I have been searching abt this for a while now. Could not find any good answer.
I'm using JUnit 4.8.1 but can go to JUnit 3 if I have too.
Here is my problem:
I have 3 test suites each containing 11, 12, 13 tests in it. CarTestSuite, CycleTestSuite, BoatTestSuite
Now I wish to create a new suite SanityReverseTestSuite containing only 3 tests. These tests are handpicked from the each of the above suites.
I know one I include all 3 suites into one using @Suite.SuiteClasses annotation but it would include *ALL* tests from these suite whereas I'm looking for including only ONE test from each of these suite.