@API(value=Experimental) public final class TagFilter extends Object
PostDiscoveryFilters
based on included and excluded tags.Modifier and Type | Method and Description |
---|---|
static PostDiscoveryFilter |
excludeTags(List<String> tags)
Create an exclude filter based on the supplied
tags . |
static PostDiscoveryFilter |
excludeTags(String... tags)
Create an exclude filter based on the supplied
tags . |
static PostDiscoveryFilter |
includeTags(List<String> tags)
Create an include filter based on the supplied
tags . |
static PostDiscoveryFilter |
includeTags(String... tags)
Create an include filter based on the supplied
tags . |
public static PostDiscoveryFilter includeTags(String... tags)
tags
.
Containers and tests will only be executed if they are tagged with at least one of the supplied included tags.
tags
- the included tags; never null
or emptypublic static PostDiscoveryFilter includeTags(List<String> tags)
tags
.
Containers and tests will only be executed if they are tagged with at least one of the supplied included tags.
tags
- the included tags; never null
or emptypublic static PostDiscoveryFilter excludeTags(String... tags)
tags
.
Containers and tests will only be executed if they are not tagged with any of the supplied excluded tags.
tags
- the excluded tags; never null
or emptypublic static PostDiscoveryFilter excludeTags(List<String> tags)
tags
.
Containers and tests will only be executed if they are not tagged with any of the supplied excluded tags.
tags
- the excluded tags; never null
or empty