[TIP] testing: why bother?

Lars Nordin lnordin at internap.com
Wed Mar 23 08:45:24 PDT 2011

(This answer has basically been covered already  but ...)

I would add that having a regression test suite (unit and integration) creates a behavior contract or boundary (or as Michael Feathers puts it a "vise") for your program. This gives you the freedom to be able to re-factor legacy code and not be terrified that it will break.  The goal is to have the minimum amount of maintainable tests with maximum amount of the coverage of the program's behavior.
A good book on the subject is Michael Feather's  "Working Effectively with Legacy Code" where he describes how to do this for OOP and procedural languages like C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110323/6c78438e/attachment-0001.htm>

More information about the testing-in-python mailing list