Makes pytest skip tests that don't need rerunning
Each test is run with coverage enabled.
After running each test, pytest-avoidance
stores a list of which files each test touched.
The next time a test run is requested, pytest-avoidance
checks if any of the files covered by this test have changed. If none have, the test can be delared to PASS
, even without running it!
pytest-avoidance
does not cache failures. Mostly because AFAIU bazel
doesn't either, and I'm just guessing they have good reasons not to...
You can install "pytest-avoidance" via pip from PyPI:
$ pip install pytest-avoidance
If you encounter any problems, please file an issue along with a detailed description.
Contributions are very welcome. Please run tests before making PRs:
$ tox --parallel=auto --skip-missing-interpreters=true
- Do
git tag | cat
and think about what the next version number should be. - Do
git tag --annotate 1.2.3
to set the next version number. The text you write for this tag will show up as the release description on Github, write something nice! And remember that the first line is the subject line for the release. tox -e pypi
git push --tags
Your release should now be visible on the pytest-avoidance page on Pypi.
Distributed under the terms of the MIT license, "pytest-avoidance" is free and open source software.
This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template.