I\'m using JUnit Categories and ClassPathSuite in a setup similar to that described in this answer. To recap:
public interface FastTests { } @RunWith(Catego
I found a workaround to use ant's junit task to run test of a specific Category:
Category
Execute test by supplying category.name property to ant like this:
category.name
ant -Dcategory.name=FastTests test
Using batchtest will also produce separate JUnit XML report files per test (e.g. TEST-fi.foobar.FastTestClassN.xml).
batchtest