Mutation-Driven Generation of Unit Tests and Oracles
Mutation-Driven Generation of Unit Tests and Oracles
复制标题
DOI:
10.1109/tse.2011.93
复制
发表时间:
2012-03-01
影响因子:
7.4
通讯作者:
Zeller, Andreas
中科院分区:
文献类型:
--
作者:
Fraser, Gordon;Zeller, Andreas
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 toward finding defects modeled by mutation operators rather than covering code. Second, the state change caused by mutations induces oracles that precisely detect the mutants. Evaluated on 10 open source libraries, our mu TEST prototype generates test suites that find significantly more seeded defects than the original manually written test suites.