Mutation-driven generation of unit tests and oracles

Gordon Fraser, Andreas Zeller
2010 Proceedings of the 19th international symposium on Software testing and analysis - ISSTA '10  
To assess the quality of test suites, mutation analysis seeds artificial defects (mutations) into programs; a nondetected mutation indicates a weakness in the test suite. We present an automated approach to generate unit tests that detect these mutations for object-oriented classes. This has two advantages: First, the resulting test suite is optimized towards finding defects modeled by mutation operators rather than covering code. Second, the state change caused by mutations induces oracles
more » ... precisely detect the mutants. Evaluated on 10 open source libraries, our µTEST prototype generates test suites that find significantly more seeded defects than the original manually written test suites.
doi:10.1145/1831708.1831728 dblp:conf/issta/FraserZ10 fatcat:ygqnbs2jlfbnhctonipegaebtu