Predictive Mutation Testing
- 28 February 2018
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 45 (9) , 898-918
Abstract
Test suites play a key role in ensuring software quality. A good test suite may detect more faults than a poor-quality one. Mutation testing is a powerful methodology for evaluating the fault-detection ability of test suites. In mutation testing, a large number of mutants may be generated and need to be executed against the test suite under evaluation to check how many mutants the test suite is able to detect, as well as the kind of mutants that the current test suite fails to detect. Consequently, although highly effective, mutation testing is widely recognized to be also computationally expensive, inhibiting wider uptake. To alleviate this efficiency concern, we propose Predictive Mutation Testing (PMT): the first approach to predicting mutation testing results without executing mutants. In particular, PMT constructs a classification model, based on a series of features related to mutants and tests, and uses the model to predict whether a mutant would be killed or remain alive without executing it. PMT has been evaluated on 163 real-world projects under two application scenarios (cross-version and cross-project). The experimental results demonstrate that PMT improves the efficiency of mutation testing by up to 151.4X while incurring only a small accuracy loss. It achieves above 0.80 AUC values for the majority of projects, indicating a good tradeoff between the efficiency and effectiveness of predictive mutation testing. Also, PMT is shown to perform well on different tools and tests, be robust in the presence of imbalanced data, and have high predictability (over 60% confidence) when predicting the execution results of the majority of mutants.Keywords
Funding Information
- National Basic Research Program of China (2016YFB1000801)
- National Natural Science Foundation of China (61522201, 61529201)
- NSF (CCF-1566589)
- EPSRC grant DAASE Dynamic Adaptive Automated Software Engineering (EP/J017515/)
This publication has 89 references indexed in Scilit:
- Cost-sensitive boosting neural networks for software defect predictionExpert Systems with Applications, 2010
- The impact of Test-First programming on branch coverage and mutation score indicator of unit tests: An experimentInformation and Software Technology, 2010
- AN APPROACH TO TESTING BLACK-BOX COMPONENTS USING CONTRACT-BASED MUTATIONInternational Journal of Software Engineering and Knowledge Engineering, 2008
- MuJava: an automated class mutation systemSoftware Testing, Verification and Reliability, 2004
- Toward the determination of sufficient mutant operators for C†Software Testing, Verification and Reliability, 2001
- Monsoons: Processes, predictability, and the prospects for predictionJournal of Geophysical Research: Oceans, 1998
- An empirical evaluation of weak mutationIEEE Transactions on Software Engineering, 1994
- PIE: a dynamic failure-based techniqueIEEE Transactions on Software Engineering, 1992
- High performance software testing on SIMD machinesIEEE Transactions on Software Engineering, 1991
- Information gain and a general measure of correlationBiometrika, 1983