Skip to main content

Makes pytest skip tests that don not need rerunning

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_avoidance-0.2.0-py2.py3-none-any.whl (6.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest_avoidance-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_avoidance-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for pytest_avoidance-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c3fb0fc72c7f79882e390128f9a035a4ab7caa48ac1b4b45b53d88b0008b17a8
MD5 2a0bec54b005dc087c50c8748488ae95
BLAKE2b-256 411da35d7e6cfdd5d4e5243fcbfb1c37f4c1216e3dd692c3b0458b8d7120d5cf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page