Cerebro: Static Subsuming Mutant Selection

Aayush Garg, Milos Ojdanic, Renzo Degiovanni, Thierry Titcheu Chekam, Mike Papadakis +1 more
12/28/2021
cs.SE

Official code: garghub/Cerebro (7 stars, Apache-2.0, last commit 2022-11-07).

Abstract

Mutation testing research has indicated that a major part of its application cost is due to the large number of low utility mutants that it introduces. Although previous research has identified this issue, no previous study has proposed any effective solution to the problem.

Show full abstract

Thus, it remains unclear how to mutate and test a given piece of code in a best effort way, i.e., achieving a good trade-off between invested effort and test effectiveness. To achieve this, we propose Cerebro, a machine learning approach that statically selects subsuming mutants, i.e., the set of mutants that resides on the top of the subsumption hierarchy, based on the mutants' surrounding code context. We evaluate Cerebro using 48 and 10 programs written in C and Java, respectively, and demonstrate that it preserves the mutation testing benefits while limiting application cost, i.e., reduces all cost application factors such as equivalent mutants, mutant executions, and the mutants requiring analysis. We demonstrate that Cerebro has strong inter-project prediction ability, which is significantly higher than two baseline methods, i.e., supervised learning on features proposed by state-of-the-art, and random mutant selection. More importantly, our results show that Cerebro's selected mutants lead to strong tests that are respectively capable of killing 2 times higher than the number of subsuming mutants killed by the baselines when selecting the same number of mutants. At the same time, Cerebro reduces the cost-related factors, as it selects, on average, 68% fewer equivalent mutants, while requiring 90% fewer test executions than the baselines.

View on arXivView PDF

Code Implementations(1)

garghub/CerebroOfficial100%
Apache-2.0

Cerebro: Static Subsuming Mutant Selection, IEEE Transactions on Software Engineering (TSE)

73Oct 2, 20214 years agoApache-2.0
deep-learningencoder-decodermutation-testingprediction

Similar Papers

Cite this paper

@article{garg2021cerebro,
  title  = {Cerebro: Static Subsuming Mutant Selection},
  author = {Aayush Garg and Milos Ojdanic and Renzo Degiovanni and Thierry Titcheu Chekam and Mike Papadakis and Yves Le Traon},
  year   = {2021},
  eprint = {2112.14151},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.14151}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.14151.svg)](https://codeofpaper.com/paper/2112.14151)

Discussion