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
_______________________________________________
pytest-dev mailing list
pytest-dev@python.org
https://mail.python.org/mailman/listinfo/pytest-dev

Reply via email to