Skip to content

g0rr0g/pytest-testmon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fork of pytest-testmon that disables checking of changed dependencies

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%