@Retention(value=RUNTIME)
@Target(value={METHOD,TYPE,PACKAGE})
public @interface Ignore
Notice that @Ignore on a class will disable all test methods of the class.
Ignoring a class will ignore tests from child classes too.
Ignoring a package will ignore all tests in the package and its sub-packages
A package annotation is done in package-info.java. For example:
@Ignore package test.ignorePackage; import org.testng.annotations.Ignore;
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
value |