QA Fundamentals · Senior · Question 65 of 76
How do you handle a defect found in production that tests should have caught?
- 1Add a test reproducing it, fix, then check why it escaped
- 2Remove the related tests, since they clearly don't work
- 3Fix it quickly and avoid discussing why it was missed
Show the answer
Correct answer: Add a test reproducing it, fix, then check why it escaped
Explanation
A failing test first proves the fix and prevents regression. Analysing the escape improves the process rather than only the code.