Friday, March 25, 2011

The Zen of Testing

Tests that use a style you disagree with are better than no tests at all.

Tests that catch more errors are better than tests that catch fewer errors.

Getting more done with less effort is better than getting less done with more effort.

Tests that are readable are better than tests that are unreadable.

Tests that are easy to update are better than tests that are hard to update.

Tests that fail when appropriate are better than tests that fail when inappropriate.

Tests that test the stuff you care about are better than tests that test stuff you don't care about.

Tests that take little effort and catch a lot are better than tests that take a lot of effort and catch little.

3 comments:

Shannon -jj Behrens said...

If you want more, check out the section labelled "Other Statements" in:

https://github.com/jjinux/pyteladventure/raw/master/pybdd_talk.txt

Shailen Tuli said...

How about, "tests that have been written are better than tests that are going to be written sometime in the future" ?

Shannon -jj Behrens said...

Agreed.