pytest-skippy automatically skips tests that don’t need to run!
The process for determining if a test needs to run involves
PyTest Command Line Options¶
Enables this plugin, automatically skipping tests when applicable.
The target branch is the branch that has been modified. This branch parameter
is passed to
git merge-base to determine which files have been changed.
For example, for a pull request using github and Travis-CI, the target branch
is stored in an environment variable called
Safe mode changes the behavior of the skippy plugin so that any import that cannot be resolved forces a test run.
This makes sure that if a module is missing for any reason the test that would catch the missing import is run.
Using this mode is likely to result in many false positives, causing tests to run when it may not be necessary.