[TIP] testing: why bother?

skip at pobox.com skip at pobox.com
Wed Mar 23 08:05:10 PDT 2011

    Laura> I think that the most important reason to write tests is so that
    Laura> they can write them _first_, and the code _later_.  This will
    Laura> change the way they write code, so that they won't produce these
    Laura> large, self-contained, too-tightly coupled messes, which just
    Laura> happen to work, and which are a nightmare to refactor because
    Laura> they don't decompose nicely.

OTOH, writing tests first is also no guarantee that your code will be
well-structured. <wink>


More information about the testing-in-python mailing list