Loading...
Your team asked AI to write tests for the payment service. The coverage report shows 100% line coverage and all tests pass. Your tech lead is skeptical and drops this in Slack:
“Coverage is green but I don't trust these tests. Can you review the test file and tell me if these tests actually catch real bugs?”
What you're being evaluated on
3 hints available (using hints reduces your score)
An AI generated a test suite with 100% code coverage, but the tests assert that mocks return their own setup values and prove nothing about real behavior. Practice spotting circular tests, vacuous assertions, missing error scenarios, and test data too uniform to catch bugs. Learn why high coverage from AI-generated tests does not mean correctness.
Play the full scenario above for free. More AI Code Review scenarios · Create a free account to save your progress.