Fine-grained control over disabling tests. Can be used to disable arbitrarily nested, inherited tests.
public abstract class BaseTest {
@Test
void badTest() {
fail("I'm a bad test!");
}
@Nested
class NestedTests {
@Test
void badNestedTest() {
fail("Another bad test!");
}
}
}
@Disable("badTest()")
@Disable({"NestedTests", "badNestedTest()"})
public class DerivedTest extends BaseTest {
@Test
void otherTest() {}
}