Skip to main content
PyPI version Python versions See Build Status on Travis CI See Build Status on AppVeyor

Makes pytest skip tests that don’t need rerunning

How pytest-avoidance avoids tests

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…

Installation

You can install “pytest-avoidance” via pip from PyPI:

$ pip install pytest-avoidance

Issues

If you encounter any problems, please file an issue along with a detailed description.

Contributing

Contributions are very welcome. Please run tests before making PRs:

$ tox –parallel=auto –skip-missing-interpreters=true

Releasing a new Version

  1. Do git tag | cat and think about what the next version number should be.

  2. 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.

  3. tox -e pypi

  4. git push --tags

Your release should now be visible on the pytest-avoidance page on Pypi.

License

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.

Release files for pytest-avoidance 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pytest-avoidance 0.3.0
File Interpreter ABI Platform
pytest_avoidance-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / pytest_avoidance-0.3.0-py2.py3-none-any.whl

Download URL pytest_avoidance-0.3.0-py2.py3-none-any.whl
Size 6.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d28e320ce37ee6344ae3fb451dce5515088b7058a8044877464ffa140b2a8de3
BLAKE2b-256 checksum
How to use checksums
6b8d15d58f9ece5847b4ca814d509d577b47562e36980465981892bad90eb41d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

0.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page