I’ve a small Java project at https://github.com/marcosbento/JunitParameterizedGradleBug where it seems that JUnit includeCategories is not working for Parameterized tests.
The project uses excludeCategories to customize :test task and exclude all tests with @Category(Tag.class). That is working perfectly for both regular and parameterized tests.
However, the project defines a new :tagTest task specifying includeCategories, but in this case tests the @Category(Tag.class) are not included with they are also annotated with @RunWith(Parameterized.class).
I’m I doing something wrong?