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:

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

Built Distribution

File details

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

File metadata

File hashes

Hashes for pytest-testmon-skip-libraries-1.4.5.dev1.tar.gz
Algorithm Hash digest
SHA256 15997938d732fc0fa14eacf20dd5b9e9c1ecd28270f44d3cdce87a96d7fbb682
MD5 cfceab206e1248727237ba8225b47f99
BLAKE2b-256 30c1ff48211aae784a5aacc32834f6449aa22f25b8089ad120bbad94285c1699

See more details on using hashes here.

File details

Details for the file pytest_testmon_skip_libraries-1.4.5.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_testmon_skip_libraries-1.4.5.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 4800e58cca1b881d3b99ea767b01e550792a122d665f17efbb4e0f4bf2a2c142
MD5 d14c40456cbdb1e11cb4c02543291e95
BLAKE2b-256 d16dc99e96e5e6a393a3cb2b1d2c2cfdb46b228aa28b21c6dc3b82b09e534058

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