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

Get xUnit Test Patterns: Refactoring Test Code 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.