Originally reported by: BitBucket: eevee, GitHub: eevee
It can't programmatically stop recursing into a directory — its return value is ignored. (Granted, pytest_ignore_collect can do this.)
It can't mark the directory as skip — calling pytest.skip will end collection entirely.
It can't collect the directory itself as an Item — again, its return value is ignored.
I feel some potential has been lost here. :)
(I have a bunch of test files for a compiler project, where each file is effectively a single test, and I wanted to group them in the default reporting by the directory that contains them, rather than have each of some hundred test files lists on its own line. Ended up doing it by hacking nodeid.)
Originally reported by: BitBucket: eevee, GitHub: eevee
It can't programmatically stop recursing into a directory — its return value is ignored. (Granted,
pytest_ignore_collectcan do this.)It can't mark the directory as skip — calling
pytest.skipwill end collection entirely.It can't collect the directory itself as an
Item— again, its return value is ignored.I feel some potential has been lost here. :)
(I have a bunch of test files for a compiler project, where each file is effectively a single test, and I wanted to group them in the default reporting by the directory that contains them, rather than have each of some hundred test files lists on its own line. Ended up doing it by hacking
nodeid.)