unit testing
Jeffrey Froman
jeffrey at fro.man
Thu Oct 4 16:49:40 EDT 2007
Chris Mellon wrote:
> Doctest is commonly given as the alternative to people who feel this
> way. Personally, I find that anything worth testing is worth having a
> test directory and independent unit tests for.
I like keeping my tests separate as well, and doctest does allow this, using
doctest.testfile(). That is, despite the name, doctests do not necessarily
need to appear in docstrings :-)
Jeffrey
More information about the Python-list
mailing list