Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.96 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.96 KB

pytest-delta

version ci pypi codecov Code style: black Imports: isort license versions

What is pytest-delta?

pytest-delta is a plugin to run your tests only when selected files are changed.

Installation 💻

pip install pytest-delta

Usage

from pytest_delta import skip_if_files_have_not_changed


@skip_if_files_have_not_changed(files=["my_specific_file.py"])
def test_should_do_whatever():
    print("Runnint the test")

You can use the envvar PYTEST_DELTA_TESTING_ENABLED to enable or disable pytest decorators

export PYTEST_DELTA_TESTING_ENABLED=True
export PYTEST_DELTA_TESTING_ENABLED=False

Contribute

We'd love you to contribute to pytest-delta 🥳🥳🥳🥳🥳🥳️️!

For more information, check our documentation

Contact 📬

[email protected]