[Tutor] testing: doctest and unittest
Alex Hunsley
lard at tardis.ed.ac.uk
Tue Nov 8 14:09:57 CET 2005
Regards testing, I've been playing with both the unittest
(http://pyunit.sourceforge.net/pyunit.html) and doctest
(http://docs.python.org/lib/module-doctest.html). I was wondering what
peoples thoughts were on the effectiveness and convenience of one versus
the other. It seems to me that doctest is good for quicky and
straightforwards input/output tests for small units, whereas unittest
would be good for dynamic or complicated testing.
Where do you seasoned pythonites see unittest and doctest in relation to
each other? Do you only use one or the other?
ta,
alex
More information about the Tutor
mailing list