Skip to content

@darrenburns darrenburns released this Mar 12, 2020 · 1 commit 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.

Assets 2
You can’t perform that action at this time.