'Pytest: how to see where it is searching for tests?

I'm using pytest to execute my unit tests, but it is not finding my unit tests. When I execute pytest in the project root folder, it does not print any output. The return code is 1.

I'd like to see where it is searching for tests. Is there a debug flag that makes pytest display where it is searching for test functions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source