[py-dev] running doctest-based tests

Max Ischenko ischenko at gmail.com
Tue Jun 7 20:55:22 CEST 2005


Hi,

I have doctests in my source code which I want to have executed by py.test.

>From what I understood, I need to add a conftest.py to my source package
directory and specify some collector that is able to collect and run these
tests.

Is there any pre-built public code to do this? Looking thru py.test sources
do not reveal much (except the DoctestText which seems to be not what I
need).

PS: I've searched thru archives and there appear quite a few threads but I
didn't find any meaningful conclusions or recipes.

Thanks.



More information about the py-dev mailing list