@Target(value={METHOD,TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Repeatable(value=TagList.class) @API(status=STABLE, since="1.0") 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 pointModifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |