Debug a failing test with a model in the loop
Medium35 minFree, no account
A flaky test, a confident wrong diagnosis, and the discipline not to take it.
The question
One integration test fails about one run in five. It passes in isolation and fails in the full suite.
Use a model to help diagnose it. Narrate the hypotheses and how you eliminate each.
35:00Commit to an answer before you open the solution. Reading it first teaches you to recognise good answers, which is not the skill being tested.
Stuck?
0 of 3 hints takenThe worked solution
written by a person · not a gradeScore yourself
0 of 5 marked- Used the symptom pattern to narrow before touching code25
- Made it reproducible and bisected to a minimal failing pair30
- Prompted for candidate causes and distinguishing experiments20
- Rejected a fix that masks rather than removes the race15
- Said what would stop this class recurring10
We run no AI here and nothing on this page grades you. The score is yours, and the useful number is the one you get on the same problem a month from now, cold.
kept in this browser only