[pytest-dev] Test discovery
Rob McDonald
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.
Best,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20200801/23a62278/attachment.html>
More information about the pytest-dev
mailing list