This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author chris.jerdonek
Recipients asvetlov, brett.cannon, chris.jerdonek, docs@python, eli.bendersky, eric.araujo, ezio.melotti, georg.brandl, r.david.murray, sbt, terry.reedy, v+python
Date 2012-09-11.01:19:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347326394.53.0.219409445997.issue15629@psf.upfronthosting.co.za>
In-reply-to
Content
> Integrating this with regrtest requires some work, for example you would have to count successes/failures, add skips for certain tests and resources to control what tests should be run (there's currently a turtle going around on my screen when I run `make doctest`).

Fortunately, we get a lot of this for free when integrating with regrtest because the infrastructure is already there for the other tests.  For example, the test counts for my previous comment were automatic, operating in a clean temp cwd is something else taken care of, a command-line interface is already present, etc.

The main doctest-specific things that needed to be added were (1) doctest discovery (which involves walking the Lib/ and Doc/ directory hierarchies), and (2) creating TestSuite instances differently (by invoking DocTestSuite and DocFileSuite as opposed to calling TestLoader.loadTestsFromModule()).

I would still like to decouple the code a bit more and perhaps even add some unit tests for some of the newly added code.
History
Date User Action Args
2012-09-11 01:19:54chris.jerdoneksetrecipients: + chris.jerdonek, brett.cannon, georg.brandl, terry.reedy, ezio.melotti, eric.araujo, v+python, r.david.murray, eli.bendersky, asvetlov, docs@python, sbt
2012-09-11 01:19:54chris.jerdoneksetmessageid: <1347326394.53.0.219409445997.issue15629@psf.upfronthosting.co.za>
2012-09-11 01:19:54chris.jerdoneklinkissue15629 messages
2012-09-11 01:19:53chris.jerdonekcreate