[Python-ideas] doctest

Nick Coghlan ncoghlan at gmail.com
Fri Feb 17 23:12:15 CET 2012

On Sat, Feb 18, 2012 at 7:57 AM, Mark Janssen <dreamingforward at gmail.com> wrote:
> Anyway... of course patches welcome, yes...  ;^)

Not really. doctest is for *testing code example in docs*. If you try
to use it for more than that, it's likely to drive you up the wall, so
proposals to make it more than it is usually don't get a great
reception (docs patches to make it's limitations clearer are generally
welcome, though). The stdib solution for test driven development is
unittest (the vast majority of our own regression suite is written
that way - only a small proportion uses doctest).

An interesting third party alternative that has been created recently
is behave: http://crate.io/packages/behave/


Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia

More information about the Python-ideas mailing list