Chapter 17. How Do We Do a Test That We Can’t Do?

We encountered a real bug in the system that wasn’t caught by our tests. The feature worked, but the GUI wasn’t hooked to it. We don’t know how to test that, but our rules of operation say that we must. What can we do?

We Need Better Customer Acceptance Tests

You’ve now witnessed a couple of GUI-related defects. First there was that scrolling problem, and then when I implemented a feature I forgot to hook it up in the GUI, even though the tests said it was working. It worked for everyone except the users! Lately, I’ve found myself running the GUI quite often, to be sure that it works, and that’s bad.

Lesson

Why is that bad, you ask? It breaks the rhythm. The rhythm one tries to set up is write a test ...

Get Extreme Programming Adventures in C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.