[Zope-Coders] More testing
Chris Withers
chrisw@nipltd.com
Tue, 09 Oct 2001 16:48:09 +0100
Steve Alexander wrote:
>
> If I want to check in a bugfix, that poses the question of why there is
> a bug to be fixed. That suggests the bug was not covered by a test, and
> therefore, we need a test that proves the bug is fixed, that would have
> failed before the bugfix.
Well, to get a little XP, you should probably add the test _first_ and make sure
it fails and is therefore excercising the code you're about to fix.
It then becomes trivial to know when you're done: all the tests pass! :-)
cheers,
Chris