[Paper Review] Empirical Evaluation of Mutation-based Test Prioritization Techniques
This paper proposes a diversity-aware mutation-based test case prioritization technique that prioritizes test cases based on their ability to distinguish mutants from one another, not just from the original program. Empirical evaluation on 352 real faults and 553,477 test cases shows that combining mutant killing and distinguishing criteria via a hybrid greedy approach outperforms single-objective methods, though no single technique dominates across all faults.
We propose a new test case prioritization technique that combines both mutation-based and diversity-based approaches. Our diversity-aware mutation-based technique relies on the notion of mutant distinguishment, which aims to distinguish one mutant's behavior from another, rather than from the original program. We empirically investigate the relative cost and effectiveness of the mutation-based prioritization techniques (i.e., using both the traditional mutant kill and the proposed mutant distinguishment) with 352 real faults and 553,477 developer-written test cases. The empirical evaluation considers both the traditional and the diversity-aware mutation criteria in various settings: single-objective greedy, hybrid, and multi-objective optimization. The results show that there is no single dominant technique across all the studied faults. To this end, ev{we we show when and the reason why each one of the mutation-based prioritization criteria performs poorly, using a graphical model called Mutant Distinguishment Graph (MDG) that demonstrates the distribution of the fault detecting test cases with respect to mutant kills and distinguishment.
Motivation & Objective
- To investigate the effectiveness and cost of mutation-based test case prioritization using both traditional mutant kill and a novel diversity-aware mutant distinguish criterion.
- To evaluate the performance of single-objective greedy, hybrid, and multi-objective prioritization strategies under both criteria.
- To identify when and why each prioritization criterion underperforms using a novel visual analysis model.
- To provide insights into combining mutation-based and diversity-based criteria for improved early fault detection in regression testing.
Proposed method
- Proposes a new mutation-based prioritization criterion focused on distinguishing the behavior of each mutant from all other mutants, not just from the original program.
- Introduces the Mutant Distinguishment Graph (MDG), a visual model to analyze the relationship between test cases, mutant kills, and mutant distinguishments with respect to fault detection.
- Employs three prioritization strategies: greedy (single-objective), hybrid (combining kill and distinguish), and multi-objective (optimizing both simultaneously).
- Uses the Defects4J benchmark with 352 real faults and 553,477 developer-written test cases to evaluate effectiveness and execution cost.
- Measures effectiveness via fault detection rate and time-to-fault, and cost via prioritization execution time.
- Applies multi-objective optimization using NSGA-II and TAEA algorithms to explore trade-offs between killing and distinguishing mutants.
Experimental results
Research questions
- RQ1How effective is the proposed diversity-aware mutation-based prioritization compared to traditional mutant kill-based prioritization?
- RQ2Which prioritization strategy—greedy, hybrid, or multi-objective—yields the best fault detection performance across real-world faults?
- RQ3Under what conditions does the mutant kill-based prioritization fail, and why?
- RQ4How does the combination of killing and distinguishing mutants impact test case ordering effectiveness?
- RQ5What is the computational cost of multi-objective prioritization compared to greedy and hybrid approaches?
Key findings
- The hybrid greedy approach that combines mutant killing and distinguishing criteria achieves the best fault detection performance, outperforming both single-objective strategies.
- No single prioritization technique consistently dominates across all 352 faults; performance varies significantly depending on the fault characteristics.
- Multi-objective prioritization requires approximately 37 minutes per test suite, while greedy and hybrid methods take less than 8 seconds, indicating a high cost-to-benefit trade-off.
- The mutant distinguish criterion alone is not superior to the kill-only criterion, but their combination significantly improves fault detection effectiveness.
- The MDG visual model reveals that simply killing mutants early does not guarantee early fault detection, as some fault-detecting test cases fail to distinguish mutants.
- Mutation-based prioritization is more effective than coverage-based or random prioritization for at least 88.9% and 77.8% of faults, respectively.
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.