This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
0.42.0b0 - Tagging and querying with tag expressions
darrenburns
released this
12 Mar 23:31
·
266 commits
to master
since this release
You can now tag tests using the tags
keyword argument of the @test
decorator:
@test("simple addition", tags=["unit", "regression"])
def _():
assert 1 + 2 == 3
To query these tags, you can use a tag expression.
ward --tags EXPR
More examples of tag expressions:
Tag Expression | Meaning |
---|---|
slow |
tests tagged with slow |
unit and integration |
tests tagged with both unit and integration |
big and not slow |
tests tagged with big that aren't also tagged with slow |
android or ios |
tests tagged with either android or ios |
You can use parentheses in tag expressions to change precedence rules to suit your needs.
Thanks @thebigmunch for adding this feature.