O'Reilly logo

Extreme Programming Adventures in C# by Ron Jeffries

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required