Write mutation tests
Explain mutation testing, set it up with Stryker or mutmut, interpret the mutation score, and add targeted tests to kill the top surviving mutants.
Preview
Copy prompt
Explain what mutation testing is and why line coverage alone is insufficient to measure test quality. Set up mutation testing for the following [Language] project using [Stryker / Pitest / mutmut]: [Paste code]. Run an initial mutation test pass, interpret the mutation score and what it reveals about test quality, identify which surviving mutants represent the most meaningful test gaps, and write new tests specifically designed to detect and kill the top five surviving mutants.
More
Testing
Prompts
