O'Reilly logo

xUnit Test Patterns: Refactoring Test Code by Gerard Meszaros

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 17Project Smells

Smells in This Chapter

      Buggy Tests 260

      Developers Not Writing Tests 263

      High Test Maintenance Cost 265

      Production Bugs 268

Buggy Tests

Bugs are regularly found in the automated tests.

Fully Automated Tests (see page 26) are supposed to act as a "safety net" for teams doing iterative development. But how can we be sure the safety net actually works?

Buggy Tests is a project-level indication that all is not well with our automated tests.

Symptoms

A build fails, and a failed test is to blame. Upon closer inspection, we discover that the code being testing works correctly, but the test indicated it was broken.

We encountered Production Bugs (page 268) despite having tests that verify the specific scenario ...

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