Annotation Type TestGroup
A test group applied to an annotation indicates that a given annotation
can be used on individual tests as "labels". The meaning of these labels is
mostly application-specific (example:
Nightly
which indicates slower,
more intensive tests that are skipped during regular runs).
RandomizedRunner
collects groups from all tests in a suite. A group
can be enabled or disabled using boolean system properties (or test
hooks in the code). A test case is executed if it has no groups or if all of its groups
are enabled.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Utilities to deal with annotations annotated withTestGroup
. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Is the group enabled or disabled by default (unless overridden by test group filtering rules).The name of a test group.System property used to enable/ disable a group.
-
Element Details
-
name
String nameThe name of a test group. If not defined, the default (lowercased annotation name) is used.- Default:
""
-
sysProperty
String sysPropertySystem property used to enable/ disable a group. If empty, a default is used:tests.name
- Default:
""
-
enabled
boolean enabledIs the group enabled or disabled by default (unless overridden by test group filtering rules).- Default:
true
-