unit testing

Ryan Ginstrom software at ginstrom.com
Thu Oct 4 21:08:18 EDT 2007


> On Behalf Of Bruno Desthuilliers
> Or py.test or nose, which are both more complete than doctest 
> and more pythonics than the unittest module.

I second the recommendation of nose. It makes it fantastically easy to write
and run unit tests.

Also, in my experience unit tests help reduce bugs in the development
process, but their main benefits are making code more modular (writing for
testing tends to reduce dependencies) and easier to modify (less fear in
refactoring).

Regards,
Ryan Ginstrom




More information about the Python-list mailing list