Talk: Mutation testing for fun and profit - Improving the quality of your unit tests
summary
Mutation testing uses PiTest to insert small code changes and run the unit suite against each mutant, exposing missing tests, dead code and weak boundaries. A simple bank account example shows removing dead code and adding a boundary test raises the project from 67% to 76% mutation score, kills a previously surviving boundary mutant killed and reveals untested transaction tracking. It warns mutation runs scale poorly so start small, focus on business logic, and prioritize mutants that indicate real behavioral gaps.
AI-written summary · about
