Skip to content

Add looponfailrootsignore option#1332

Open
Harshal96 wants to merge 1 commit into
pytest-dev:masterfrom
Harshal96:feat/looponfailrootsignore
Open

Add looponfailrootsignore option#1332
Harshal96 wants to merge 1 commit into
pytest-dev:masterfrom
Harshal96:feat/looponfailrootsignore

Conversation

@Harshal96
Copy link
Copy Markdown

Thanks for submitting a PR, your contribution is really appreciated!

Checklist:

  • Make sure to include reasonable tests for your change if necessary
  • Add a towncrier news file in the changelog folder

Summary:

  • Add --looponfailrootsignore and looponfailrootsignore support for loop-on-fail file watching.
  • Ignore matching generated files and directories in StatRecorder so artifacts like cassettes or databases do not trigger endless reruns.
  • Document the looponfailroots and looponfailrootsignore settings.

Test plan:

  • uv run pytest
  • uv run --with pre-commit pre-commit run --all-files --show-diff-on-failure
  • uv run --with tox tox -e py310-pytestlatest

Closes #633

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

please add looponfailrootsignore option

1 participant