Top Description Methods
org.junit.jupiter.api

public @Interface Tag

extends Annotation
Annotations
@Target:TYPE, METHOD
@Retention:RUNTIME
@Documented
@Inherited
@Repeatable:Tags
@API
status:STABLE
since:5.0
Static Imports
org.apiguardian.api.API.Status.STABLE

@Tag is a repeatable annotation that is used to declare a tag for the annotated test class or test method.

Tags are used to filter which tests are executed for a given test plan. For example, a development team may tag tests with values such as "fast", "slow", "ci-server", etc. and then supply a list of tags to be included in or excluded from the current test plan, potentially dependent on the current environment.

Syntax Rules for Tags

Since
5.0
See Also
Tags, Test

Method Summary

Modifier and TypeMethod and Description
public String
value()

The tag.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public String value()

The tag.

Note

the tag will first be stripped. If the supplied tag is syntactically invalid after trimming, the error will be logged as a warning, and the invalid tag will be effectively ignored. See Syntax Rules for Tags.