Top Description Methods
org.testng.annotations

public @Interface Ignore

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD, TYPE, PACKAGE
Static Imports
java.lang.annotation.ElementType.METHOD, .ElementType.PACKAGE, .ElementType.TYPE

Alternative of @Test(enabled=false)

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;

Method Summary

Modifier and TypeMethod and Description
public String
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()