We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
norecursedir
pytest_ignore_collect
1 parent 52cf700 commit 8174a30Copy full SHA for 8174a30
changelog/11081.improvement.rst
@@ -1 +1,7 @@
1
The :confval:`norecursedir` check is now performed in a :hook:`pytest_ignore_collect` implementation, so plugins can affect it.
2
+
3
+If after updating to this version you see that your `norecursedir` setting is not being respected,
4
+it means that a conftest or a plugin you use has a bad `pytest_ignore_collect` implementation.
5
+Most likely, your hook returns `False` for paths it does not want to ignore,
6
+which ends the processing and doesn't allow other plugins, including pytest itself, to ignore the path.
7
+The fix is to return `None` instead of `False` for paths your hook doesn't want to ignore.
0 commit comments