Skip to main content

selects tests affected by changed files and methods

Project description

Testmon-skip-libaries

This is a fork of pytest-testmon that adds functionality to ignore changes to libraries used by the code. The standard version of pytest-testmon looks not only at the python code for changes, but also versions of dependencies. This makes it unsuitable for sharing among developers (who may have a different local set of dependencies), or CI/CD systems where your local, staging and production environments may differ in the number and versions of dependencies used.

From the original repo:

Testmon

This is a pytest plug-in which automatically selects and re-executes only tests affected by recent changes. How is this possible in dynamic language like Python and how reliable is it? Read here: Determining affected tests

Quickstart

pip install pytest-testmon-skip-libraries

# build the dependency database and save it to .testmondata
pytest --testmon

# change some of your code (with test coverage)

# only run tests affected by recent changes
pytest --testmon

# only run tests affected by recent changes while ignoring changes
# to any libraries used by the code
pytest --testmon --skip-libraries

To learn more about different options you can use with testmon, please head to testmon.org

Project details


Download files

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

Source Distribution

File details

Details for the file pytest-testmon-skip-libraries-1.3.5.dev1.tar.gz.

File metadata

File hashes

Hashes for pytest-testmon-skip-libraries-1.3.5.dev1.tar.gz
Algorithm Hash digest
SHA256 7ef91c3e42f0366c9a2296e40343be7d7a6294a2e494b7c25490d38f2227c85c
MD5 b907a3a123dc1d6af68870053390052d
BLAKE2b-256 cd425a6abd5eec9e93057de8a67b6dbe155f52c765a3af0863206c1d1b151d0b

See more details on using hashes here.

Supported by

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