QA Fundamentals · Senior · Question 69 of 76
What is the main risk of relying only on code coverage targets in a team?
- 1Coverage targets make tests run in random order
- 2Coverage tools slow down every developer's machine
- 3Teams write tests to hit numbers instead of checking behaviour
Show the answer
Correct answer: Teams write tests to hit numbers instead of checking behaviour
Explanation
Goodhart's law: when a measure becomes a target, it stops being a good measure. Coverage is useful to find untested areas, not as a quality guarantee.