[Paper Review] Assessing Test Case Prioritization on Real Faults and Mutants
This study evaluates Test Case Prioritization (TCP) techniques on both real faults from Defects4J and 35k+ mutants, finding that mutation-based performance often overestimates real-world effectiveness by ~20% on average—especially when trivial and subsumed mutants are included. Crucially, the relative ranking of TCP techniques on mutants does not reliably predict their ranking on real faults, challenging the validity of mutation-based evaluation for TCP research.
Test Case Prioritization (TCP) is an important component of regression testing, allowing for earlier detection of faults or helping to reduce testing time and cost. While several TCP approaches exist in the research literature, a growing number of studies have evaluated them against synthetic software defects, called mutants. Hence, it is currently unclear to what extent TCP performance on mutants would be representative of the performance achieved on real faults. To answer this fundamental question, we conduct the first empirical study comparing the performance of TCP techniques applied to both real-world and mutation faults. The context of our study includes eight well-studied TCP approaches, 35k+ mutation faults, and 357 real-world faults from five Java systems in the Defects4J dataset. Our results indicate that the relative performance of the studied TCP techniques on mutants may not strongly correlate with performance on real faults, depending upon attributes of the subject programs. This suggests that, in certain contexts, the best performing technique on a set of mutants may not be the best technique in practice when applied to real faults. We also illustrate that these correlations vary for mutants generated by different operators depending on whether chosen operators reflect typical faults of a subject program. This highlights the importance, particularly for TCP, of developing mutation operators tailored for specific program domains.
Motivation & Objective
- To investigate whether performance of Test Case Prioritization (TCP) techniques on mutants reliably reflects their performance on real-world software faults.
- To assess the extent to which mutation-based evaluations of TCP can be considered representative of practical testing scenarios.
- To identify factors—such as mutant types, program characteristics, and mutation operators—that affect the representativeness of mutants for real faults.
- To evaluate the impact of different metrics (APFD vs. APFDc) on the correlation between mutant and real fault detection performance.
- To advocate for the development of domain-specific, fault-model-driven mutation operators to improve the realism of TCP evaluation.
Proposed method
- Implemented eight well-studied TCP techniques and applied them to both 357 real faults from the Defects4J dataset and over 35,000 mutants generated using Pit.
- Measured performance using two standard metrics: APFD (Average Percentage of Faults Detected) and APFDc (cost-cognizant APFD), comparing results across real faults and mutants.
- Classified mutants into categories including trivial, subsumed, and those generated by different mutation operators (e.g., arithmetic, boolean, return), analyzing their impact on performance correlation.
- Conducted statistical analysis to assess correlation between TCP technique rankings on mutants versus real faults across five Java systems.
- Evaluated the influence of mutant coupling and operator types on the representativeness of mutants relative to real faults.
- Proposed a framework for future work based on domain-specific fault modeling and tailored mutation operators to improve evaluation realism.
Experimental results
Research questions
- RQ1To what extent does the performance of TCP techniques on mutants correlate with their performance on real-world faults?
- RQ2How do different mutation operators affect the representativeness of mutants in evaluating TCP techniques?
- RQ3Does the choice of performance metric (APFD vs. APFDc) influence the correlation between mutant and real fault detection performance?
- RQ4How do program-specific characteristics affect the reliability of mutation-based TCP evaluation?
- RQ5Can tailored mutation operators improve the realism of TCP evaluation in practice?
Key findings
- Mutation-based TCP evaluation using APFD tends to overestimate real fault detection performance by approximately 20% on average, especially when trivial and subsumed mutants are included.
- After removing trivial and subsumed mutants, performance on mutants slightly underestimates real fault detection by about 3% on average, indicating improved representativeness.
- The relative ranking of TCP techniques on mutants does not consistently correlate with their ranking on real faults, with this lack of correlation varying significantly across subject programs.
- The correlation between mutant and real fault detection performance is weak for APFD but medium to strong for APFDc, suggesting APFDc is more reliable for mutation-based evaluation.
- Different mutation operators yield varying levels of representativeness, with correlations in performance depending on both the program and the operator type.
- Static TCP techniques slightly outperform dynamic ones on real faults, though the difference is not statistically significant, indicating no clear dominance of one approach in practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.