Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

AI wrote the tests: 100% coverage, yet 7 mutants survived

Video information, playback and saved actions.

AI wrote the tests: 100% coverage, yet 7 mutants survived

Description: A coding agent wrote a voucher engine and its own 31 tests: 100% line coverage, all green. StrykerJS made 75 mutants and 7 survived (90.67% mutation score): a boundary, a tie-break, two in the stacking rule, two unchecked error messages and one equivalent mutant.
One mutation-guided round added 6 tests, each named for the bug it prevents: 74 of 75 killed (98.67%). The agent proved the last mutant equivalent and suggested a skip comment instead of a junk test.

Write-up: https://garyparker.dev/blog/mutation-testing-ai-generated-tests
Repo: https://github.com/qa-gary-parker/poc-ai-code-test-coverage

0:00 Result: 100% coverage, 90.67% then 98.67% mutation score
0:24 The task: a voucher engine full of edges
0:42 Line coverage vs mutation testing
1:04 The 7 survivors
1:29 One feedback round
1:46 The equivalent mutant
2:09 What to take away Close description
      
Videos related to "AI wrote the tests: 100% coverage, yet 7 mutants survived"

Related videos are temporarily unavailable.

Try again, or come back later.