Slide 23
Slide 23 text
High test coverage is NOT an
indicator that your tests are sufficient
• Focusing on high test coverage leads to low-quality,
easy-gain tests (hint: snapshots)
• you get diminishing returns on your tests as the
coverage increases much beyond 70-80%
• Very high coverage means that you are likely
testing implementation details, which means your
tests will probably break while refactoring, ironically
making it harder, not easier, to refactor your code.