@Target(value={METHOD,TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Repeatable(value=TagList.class) public @interface Tag
@Tag("a tag")
to give test classes, groups and methods an (additional) tag
which can later be used to select the set of tests to execute.
You can have many tags on the same element.
Tags on the JUnit platform must obey a few rules:
,
: comma(
: left parenthesis)
: right parenthesis&
: ampersand|
: vertical bar!
: exclamation pointorg.junit.platform.engine.TestTag
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |