[pytest-dev] Test discovery
rob.a.mcdonald at gmail.com
Sun Aug 2 02:16:52 EDT 2020
According to Google, 'How does pytest discover tests' is an oft-asked
question. However most of those questions actually want to know 'What
criteria does pytest use to discover tests'...
I'm working on a program that needs to scan a directory structure for
Python code and then execute some of that code -- much like pytest does.
So, I'd like to know _how_ does pytest discover (and run) tests.
I've searched around in the source for where this happens, but I haven't
had any luck. Much appreciated if someone can point me to the relevant
bits of code? Otherwise, any pointers on best practices and
functions/methods to use for this sort of thing are appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pytest-dev