[Zope3-dev] Re: doctests in *.txt files

Garrett Smith garrett at mojave-corp.com
Sat Mar 27 21:46:09 EST 2004


Tim Peters wrote:

> FYI, Jim and I presented a paper about it at PyCon this week; the slides +
> notes are onlone, fourth from the top ("Literate unit testing: Unit Testing
> with Doctest") at:
> 
>     http://www.python.org/pycon/dc2004/papers/
> 
> Lots of people found me after the talk and admitted to being secret doctest
> users.  It's been around for years, but I'm not a proselytizer, and some of
> unittest's users are.  I guess doctest's users are just content to be
> happier <wink>.
> 
> Something that became clearer after the slides were written:  unittest is
> really (at least) two things, both a particular way of writing tests, and a
> driver for running tests.  Jeremy's test.py (in Zope3, and also Zope2 too
> now) supplies lots of helpful functionality beyond unittest in the latter
> role.  So another thing I'd like to see in the standard Python library is a
> test-runner component with Jeremy-like features, to work well with multiple
> ways of writing tests.

I'm really excited to see this getting exposure at PyCon. I wrote my 
first foo.txt documentation/test and I don't see myself going back to 
the junit approach.

I give the new approach seven thumbs up (my highest rating yet).

  -- Garrett




More information about the Zope3-dev mailing list