[Pytest-commit] Issue #571: pytest_collect_directory is not particularly useful (hpk42/pytest)
issues-reply at bitbucket.org
Tue Aug 26 22:44:29 CEST 2014
New issue 571: pytest_collect_directory is not particularly useful
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.)
More information about the pytest-commit