Test suites in Junit4 run nicely, but there's a snag here:
@RunWith(Suite.class)
@Suite.SuiteClasses({ A.class, B.class, ...})
If somebody develops a unit test and forgets to include it in Suite.SuiteClasses, that's obviously a problem.
(that's not a burning problem since Ant will catch that later but still)
So I wondered: if you have say "test" folder in Eclipse project and there are some packages with classes in it - is there a way to include them all automatically in junit4 test suite somehow?
(yes you can right-click "test" folder and do Run as Junit but that sometimes fails individual tests for some reason while they individually pass so I do not have much trust in this solution, plus test suites are nice toys to play with ;-)).