[TIP] testing: why bother?
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...
More information about the testing-in-python