Releases: darrenburns/ward
0.47.0b0
0.46.0b0
If tests are incorrectly parameterised (e.g. mismatch in each
argument counts), they will now fail without running and won't be expanded into parameterised instances.
0.45.0b0 - adds `--show-diff-symbols` option
0.44.1b0
Workaround for a bug in virtualenv which means site.getsitepackages() is not available inside virtual envs. pypa/virtualenv#228
0.44.0b0
0.43.0b0 - `fixtures` subcommand
Adds the fixtures
subcommand. By default this command lists out all fixtures present in the project. For example, running ward fixtures
gives us the following output:
We can also run ward fixtures --show-dependency-tree
to see the relationship between fixtures:
Thanks to @JoshKarpel for this contribution!
0.42.0b0 - Tagging and querying with tag expressions
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.
0.41.0b0
- Migrates Ward to use Poetry instead of Flit/pip.
- Removes chart output after tests run. The chart was causing me maintenance issues and I don't believe it's worth the effort for something that doesn't provide a great deal of value when it comes down to it.
- Updates Makefile and contribution guide
- Updates GitHub Actions to make use of Poetry for dependency management and releasing to PyPI.
0.40.1b0
A release earlier today (11 March 2020) introduced an issue where Ward would raise an exception when a non-comparison based assertion failed. This release fixes that issue.
0.40.0b0
User is informed if Ward finds and uses their pyproject.toml. Thanks to @mandarvaze.