Reducing Manual Efforts in Equivalence Analysis in Mutation Testing
Open Access
- 11 January 2024
- journal article
- Published by Sociedade Brasileira de Computação in Journal of Software Engineering Research and Development
- Vol. 12 (1) , 3:1-3:17
Abstract
Mutation testing has attracted a lot of interest because of its reputation as a powerful adequacy criterion for test suites and for its ability to guide test case generation. However, the presence of equivalent mutants hinders its usage in industry. The Equivalent Mutant Problem has already been proven undecidable, but manually detecting equivalent mutants is an error-prone and time-consuming task. Thus, solutions, even partial, can help reduce this cost. To minimize this problem, we introduce an approach to suggest equivalent mutants. Our approach is based on automated behavioral testing, which consists of test cases based on the behavior of the original program. We perform static analysis to automatically generate tests for the entities impacted by the mutation. For each mutant analyzed, our approach can suggest the mutant as equivalent or non-equivalent. In the case of non-equivalent mutants, our approach provides a test case capable of killing it. For the equivalent mutants suggested, we also provide a ranking of mutants with a strong or weak chance of the mutant being indeed equivalent. In our previous work, we evaluated our approach against a set of 1,542 mutants manually classified in previous work as equivalents and non-equivalents. We noticed that the approach effectively suggests equivalent mutants, reaching more than 96% of accuracy in five out of eight subjects studied. Compared with manual analysis of the surviving mutants, our approach takes a third of the time to suggest equivalents and is 25 times faster to indicate non-equivalents. This extended article delves deeper into our evaluation. Our focus is on discerning the specific characteristics of mutants that our approach erroneously classified as equivalent, thereby producing false positives. Furthermore, our investigation delves into a comprehensive analysis of the mutation operators, providing essential insights for practitioners seeking to improve the accuracy of equivalent mutant detection and effectively mitigate associated costs.Keywords
This publication has 26 references indexed in Scilit:
- Identifying method-level mutation subsumption relations using Z3Information and Software Technology, 2021
- A machine learning approach for classification of equivalent mutantsJournal of Software: Evolution and Process, 2019
- A systematic literature review of techniques and metrics to reduce the cost of mutation testingJournal of Systems and Software, 2019
- MEDIC: A static analysis framework for equivalent mutant identificationInformation and Software Technology, 2015
- Making refactoring safer through impact analysisScience of Computer Programming, 2014
- Comparing approaches to analyze refactoring activity on software repositoriesJournal of Systems and Software, 2013
- Covering and Uncovering Equivalent MutantsSoftware Testing, Verification and Reliability, 2012
- Feedback-Directed Random Test Generation29th International Conference on Software Engineering (ICSE'07), 2007
- Two notions of correctness and their relation to testingActa Informatica, 1982
- Hints on Test Data Selection: Help for the Practicing ProgrammerComputer, 1978