Back to Search Start Over

Avoiding useless mutants

Authors :
Márcio Ribeiro
Fabiano Cutigi Ferrari
André L. Santos
Melina Mongiovi
Ana Cavalcanti
José Carlos Maldonado
Rohit Gheyi
Leonardo Fernandes
Luiz Carvalho
Source :
GPCE
Publication Year :
2017
Publisher :
ACM, 2017.

Abstract

Mutation testing is a program-transformation technique that injects artificial bugs to check whether the existing test suite can detect them. However, the costs of using mutation testing are usually high, hindering its use in industry. Useless mutants (equivalent and duplicated) contribute to increase costs. Previous research has focused mainly on detecting useless mutants only after they are generated and compiled. In this paper, we introduce a strategy to help developers with deriving rules to avoid the generation of useless mutants. To use our strategy, we pass as input a set of programs. For each program, we also need a passing test suite and a set of mutants. As output, our strategy yields a set of useless mutants candidates. After manually confirming that the mutants classified by our strategy as "useless" are indeed useless, we derive rules that can avoid their generation and thus decrease costs. To the best of our knowledge, we introduce 37 new rules that can avoid useless mutants right before their generation. We then implement a subset of these rules in the MUJAVA mutation testing tool. Since our rules have been derived based on artificial and small Java programs, we take our MUJAVA version embedded with our rules and execute it in industrial-scale projects. Our rules reduced the number of mutants by almost 13% on average. Our results are promising because (i) we avoid useless mutants generation; (ii) our strategy can help with identifying more rules in case we set it to use more complex Java programs; and (iii) our MUJAVA version has only a subset of the rules we derived.

Details

Database :
OpenAIRE
Journal :
Proceedings of the 16th ACM SIGPLAN International Conference on Generative Programming: Concepts and Experiences
Accession number :
edsair.doi.dedup.....80f5b76cde8694ff0672019be376cf64