[Zope3-dev] The bug fixing problem

Fred Drake fdrake at gmail.com
Wed Jul 5 15:26:16 EDT 2006


On 7/5/06, dieter at handshake.de <dieter at handshake.de> wrote:
>    There are bugs that do not need a test once they are fixed.
>    All kinds of "NameError" and "AttributeError" fall into this
>    category.

The point of a test in most such cases is that there is a code path
that isn't covered by tests, or it would have been caught earlier.  A
test that exercises the modified bit of code helps assure that future
changes to the code don't introduce similar problems by providing at
least one pass through the block containing the problem.

How pressing the need for the test really is, is a matter for
discussion, because the cost of writing the first test for an existing
piece of code can be much higher than the cost of the fix.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca


More information about the Zope3-dev mailing list