[Tutor] designing POOP
kent37 at tds.net
Thu Feb 7 23:20:17 CET 2008
> What is the equivalent of JUnit in Python?
The unittest module is based on JUnit.
Here is a simple introduction to the capabilities of unittest. It
doesn't do much to motivate the examples though:
A longer intro:
An alternative to unittest is doctest. They both get the job done, which
one to use is mostly a matter of preference and the complexity of the tests.
Wikipedia has a short introduction to doctest and a link to Tim Peter's
c.l.py posting introducing the module:
There are many other testing tools that are not in the standard library.
Nose and py.test are popular alternatives to unittest and doctest.
Here is a good list of testing articles:
Here is a pretty comprehensive list of tools:
More information about the Tutor