Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pytest 3.7 not collecting tests on mixed Package and Modules #3768
I've found an issue with pytest 3.7 while collecting tests on a mixed Python packages and modules folder structure, which worked correctly on previous versions of pytest. For instance if I setup a folder structure like this:
pytest collects tests correctly:
However if I convert one of the folders to a Python package, only the tests inside that folder are being collected:
I'm not pretty sure if this is the intended behaviour or not.
Hey guys, would you be interested in a "minimum expected test number" feature? I mean, if something like this issue happens, it can be oversight. Maybe with a parameter to indicate a minimum number of tests ran it would be easier to notice that some of the tests haven't been executed. I could try to work on that and make a PR for you if you want.