ward

Ward is a modern test framework for Python with a focus on productivity and readability.

MIT License

Downloads
3.1K
Stars
1.2K
Committers
31

Bot releases are hidden (Show)

ward - 0.39.0b0

Published by darrenburns over 4 years ago

Show failure location for all AssertionErrors (even those not involving a comparison and therefore not rewritten). Thanks @jayeshathila!

ward - 0.38.0b0

Published by darrenburns over 4 years ago

Changes diff reprs to use pprintpp instead of pprint. This will make diff output look nicer, and typically pep8 compliant.

ward - 0.37.0b0

Published by darrenburns over 4 years ago

Adds support for async test and fixture definitions.

ward - 0.36.0b0

Published by darrenburns over 4 years ago

Adds --dry-run option, which allows you to print the tests that Ward collects without actually executing them or their dependencies. Thanks to @DorianCzichotzki!

ward - 0.35.0b0

Published by darrenburns over 4 years ago

Adds ability to display the N slowest tests after a test run completes using --show-slowest N. Thanks @onlyanegg for this contribution!

ward - 0.34.0b0

Published by darrenburns over 4 years ago

Adds the ability to use as with raises context manager. Thanks @thilp!

ward - 0.33.2b0

Published by darrenburns over 4 years ago

Fixes parsing of indented tests.

ward - 0.33.1b0

Published by darrenburns over 4 years ago

Ensure that the --no-capture-output is passed through to parameterised instances correctly. Output capturing can now be disabled for parameterised tests. This fixes and closes #114.

ward - 0.33.0b0

Published by darrenburns over 4 years ago

Adds --exclude command line option, allowing you to specify glob patterns of files/directories to ignore when searching for tests. Can be supplied in pyproject.toml too, like so:

[tool.ward]
exclude = ["glob1", "glob2"]
ward - 0.32.1b0

Published by darrenburns over 4 years ago

Fixes issue where --path expected a directory, and didn't allow a module to be passed directly.

ward - 0.32.0b0

Published by darrenburns over 4 years ago

Adds a __main__.py. Thanks to @thebigmunch.

ward - 0.31.1b0

Published by darrenburns over 4 years ago

Fix a bug where a subset of assertions involving comparisons would result in tests raising a NameError. Thanks to /u/Broolucks on Reddit for reporting this!

ward - 0.31.0b0

Published by darrenburns over 4 years ago

Fixes alignment of test descriptions in output when number of parameterised instances exceeds 9. Closes: https://github.com/darrenburns/ward/issues/103. Thanks to @thebigmunch for this contribution!

ward - 0.30.1b0

Published by darrenburns over 4 years ago

Closes #102 ...

Fixes a bug around importing something from a module containing tests causing tests to sometimes run more than once. This PR ensures we only run tests for the module they're defined in, and not again in modules they're imported into. Also massively improves test coverage around this area.

ward - 0.30.0b0

Published by darrenburns over 4 years ago

Added --no-capture-output flag to disable output capturing.

ward - 0.29.1b0

Published by darrenburns over 4 years ago

Merged PR #99 - fixes possibility of tests repeating for modules at different paths and same module name by ensuring they have unique identifiers.

ward - 0.29.0b0

Published by darrenburns over 4 years ago

Introduce assertion rewriting for all possible types of binary comparison. Previously, assertion rewriting only applied to assert x == y (now it also applies to assert x in y, assert x >= y, etc)

ward - 0.28.0b0

Published by darrenburns over 4 years ago

Removes the expect API.
Adds assert rewriting, currently just for assertions of the form assert x == y.

ward - 0.27.1b0

Published by darrenburns over 4 years ago

Hotfix for path error when no pyproject.toml supplied and ward ran without --path.

ward - 0.27.0b0

Published by darrenburns over 4 years ago

Add support for pyproject.toml. For more info: https://wardpy.com/guide/config

Package Rankings
Top 29.96% on Conda-forge.org
Top 3.27% on Pypi.org
Badges
Extracted from project README
Codecov Documentation Status PyPI version