Given this Test Class
@PowerMockIgnore("UnitTest")
@Category(UnitTest.class)
@RunWith(PowerMockRunner.class)
public class SomeClass {
@Test
@Category(SlowTest.class)
public void SlowMethod(){...}
}
And a Test Suite
@RunWith(Categories.class)
@SuiteClasses({AllUnitTestSuite.class})
@ExcludeCategory(SlowTest.class)
public class FastUnitTestSuite {
}
When I run the FastUnitTestSuite it runs the SlowMethod also despite it is in SlowTest Category. I can exclude slow Test Classes using PowerMockIgnore and multiple categories. How could I exclude the slow test methods while using PowerMockRunner?