Class TagFilter


  • @API(status=STABLE,
         since="1.0")
    public final class TagFilter
    extends Object
    Factory methods for creating PostDiscoveryFilters based on included and excluded tags or tag expressions.

    Tag expressions are boolean expressions with the following allowed operators: ! (not), & (and), and | (or). Parentheses can be used to adjust for operator precedence. Please refer to the JUnit 5 User Guide for usage examples.

    Please note that a tag name is a valid tag expression. Thus, wherever a tag expression can be used, a single tag name can also be used.

    Since:
    1.0
    See Also:
    includeTags(String...), excludeTags(String...), TestTag