Ward is a modern test framework for Python with a focus on productivity and readability.
MIT License
Bot releases are hidden (Show)
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!
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.
Published by darrenburns over 4 years ago
Adds support for async
test and fixture definitions.
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!
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!
Published by darrenburns over 4 years ago
Adds the ability to use as
with raises
context manager. Thanks @thilp!
Published by darrenburns over 4 years ago
Fixes parsing of indented tests.
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.
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"]
Published by darrenburns over 4 years ago
Fixes issue where --path
expected a directory, and didn't allow a module to be passed directly.
Published by darrenburns over 4 years ago
Adds a __main__.py
. Thanks to @thebigmunch.
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!
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!
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.
Published by darrenburns over 4 years ago
Added --no-capture-output
flag to disable output capturing.
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.
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)
Published by darrenburns over 4 years ago
Removes the expect
API.
Adds assert
rewriting, currently just for assertions of the form assert x == y
.
Published by darrenburns over 4 years ago
Hotfix for path error when no pyproject.toml
supplied and ward
ran without --path
.
Published by darrenburns over 4 years ago
Add support for pyproject.toml. For more info: https://wardpy.com/guide/config