You can now tag tests using the `tags` keyword argument of the `test` decorator:
python
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.