Skip navigation.

The Easiest Thing to Do Should Be the Right Thing to DoAll recent postsIn Search Of Best Methodology

Error Conditions and Little Typos

A friendly reminder from Head First Labs:

“Error conditions are usually the last thing most developers think about, but it’s the first thing most customers notice.”

and

“Customers don’t usually make huge mistakes—they make little typos, and those are the things you’re testing for here.”

Michael Nygard echoes it in Release It!:

“In the lab, all the tests are contrived by people who know what answer they expect to get. In the real world, the tests aren’t designed to have answers. […]

Enterprise software must be cynical. Cynical software expects bad things to happen and is never surprised when they do. Cynical software doesn’t even trust itself.”

Can I get an “Amen”? It’s so comforting to test intended scenarios that we overlook the unintended ones.

Comments

Comment permalink 1 Josh Stodola |
Amen! When testing, I replace my "programmer's hat" with a dunce cap and expect the worse.

Emails and Notifications

Would you like to be notified when somebody responds to this post?  Would you like to have these comments emailed to you?

TrackBacks

Sorry, TrackBacks are not allowed.

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):