Skip to content

Latest commit

 

History

History
 
 

disable-extension

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

disable-extension

Maven Central

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() {}
}