[TIP] unittest2 discovery / doctest integration?

C. Titus Brown ctb at msu.edu
Wed Apr 28 08:45:32 PDT 2010

On Wed, Apr 28, 2010 at 10:27:31AM -0500, Pete wrote:
> Just wondering how to go about running doctests under unittest2's discovery... The approach mentioned here http://docs.python.org/dev/library/doctest.html#unittest-api gets the doctests run, but is kinda bogus (you get 2 sets of test runner output).  Glancing at unittest2's discovery stuff, it seems to look for TestCases, but not TestSuites. Just wondering if there's something obvious I'm missing, or if I should start poking through/ripping off doctest's implementation of integration (which is lightly documented).

Hey Pete,

I hear you about the documentation lack... :)

Have you looked at the discover documentation?


You might also find this interesting:


C. Titus Brown, ctb at msu.edu

More information about the testing-in-python mailing list