Skip to main content
QUICK REVIEW

[Paper Review] Selecting Fault Revealing Mutants

Thierry Titcheu Chekam, Mike Papadakis|arXiv (Cornell University)|Mar 21, 2018
Software Testing and Debugging TechniquesComputer Science7 references5 citations
TL;DR

This paper proposes FaRM, a machine learning approach that selects and prioritizes fault-revealing mutants using static program features—such as control-flow structure, code complexity, and data dependencies—before any test execution. FaRM outperforms random selection, selective mutation, and defect prediction methods by revealing 23% to 34% more real faults, significantly improving mutation testing efficiency and effectiveness with minimal runtime overhead.

ABSTRACT

Mutant selection refers to the problem of choosing, among a large number of mutants, the (few) ones that should be used by the testers. In view of this, we investigate the problem of selecting the fault revealing mutants, i.e., the mutants that are most likely to be killable and lead to test cases that uncover unknown program faults. We formulate two variants of this problem: the fault revealing mutant selection and the fault revealing mutant prioritization. We argue and show that these problems can be tackled through a set of 'static' program features and propose a machine learning approach, named FaRM, that learns to select and rank killable and fault revealing mutants. Experimental results involving 1,692 real faults show the practical benefits of our approach in both examined problems. Our results show that FaRM achieves a good trade-off between application cost and effectiveness (measured in terms of faults revealed). We also show that FaRM outperforms all the existing mutant selection methods, i.e., the random mutant sampling, the selective mutation and defect prediction (mutating the code areas pointed by defect prediction). In particular, our results show that with respect to mutant selection, our approach reveals 23% to 34% more faults than any of the baseline methods, while, with respect to mutant prioritization, it achieves higher average percentage of revealed faults with a median difference between 4% and 9% (from the random mutant orderings).

Motivation & Objective

  • To address the scalability bottleneck in mutation testing caused by the large number of mutants generated.
  • To identify and prioritize mutants most likely to reveal real, unknown program faults—so-called 'fault-revealing' mutants—before test execution.
  • To develop a lightweight, static analysis-based method that avoids reliance on test suites or mutant execution for initial selection.
  • To improve mutant selection and prioritization by leveraging machine learning on program features that correlate with killability and fault revelation.
  • To provide a practical, scalable solution that reduces manual effort and increases fault detection in real-world software testing.

Proposed method

  • FaRM uses a set of static program features, including mutation location in control-flow graphs, code complexity metrics, and control/data dependencies, to characterize mutants.
  • The method applies supervised machine learning to classify mutants as likely killable or equivalent, and as likely to reveal real faults.
  • Features are extracted from the source code and mutant representations without executing any test cases or mutants.
  • The model is trained on historical data from previously tested software projects or prior releases, enabling transfer learning to new systems.
  • For mutant prioritization, FaRM ranks mutants based on predicted fault-revealing potential, enabling testers to focus on high-value mutants first.
  • The approach uses cross-validation (10-fold) on 1,692 real faults and 45 faulty program versions to evaluate performance.

Experimental results

Research questions

  • RQ1Can static program features effectively predict which mutants are most likely to be killable and reveal real faults?
  • RQ2How does FaRM’s mutant selection performance compare to random selection, selective mutation, and defect prediction-based methods in revealing real faults?
  • RQ3To what extent can FaRM reduce the number of mutants that need to be analyzed while maintaining or improving fault detection?
  • RQ4Can FaRM prioritize mutants in a way that maximizes fault revelation with fewer test cases, especially when test execution budgets are limited?
  • RQ5Does FaRM generalize across different software systems and fault types, even when trained on unrelated projects?

Key findings

  • FaRM reveals 23% to 34% more real faults than baseline methods, including random mutant sampling, selective mutation, and defect prediction-based mutation.
  • In mutant prioritization, FaRM achieves a median improvement of 4% to 9% in fault revelation rate compared to random mutant ordering.
  • The method achieves statistically significant improvements over all baselines in both mutant selection and prioritization tasks.
  • FaRM’s performance is robust across diverse software systems, as validated using 10-fold cross-validation on 1,692 real faults and 45 faulty program versions.
  • The use of only static features—without requiring test execution or dynamic analysis—enables FaRM to be applied early in the testing pipeline, reducing overall cost.
  • The study demonstrates that fault-revealing mutants can be predicted effectively using static code properties, supporting the feasibility of machine learning in pre-execution mutant selection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.