Test Case Prioritization Using Partial Attention
Quanjun Zhang, Chunrong Fang, Weisong Sun, Shengcheng Yu, Yutao Xu

TL;DR
This paper introduces a novel partial attention mechanism for test case prioritization that improves fault detection rates and significantly reduces computational costs compared to existing methods.
Contribution
It proposes a generic partial attention mechanism integrated with an additional-greedy strategy, leading to a new partition ordering technique for TCP.
Findings
OCP outperforms six state-of-the-art TCP techniques in fault detection.
OCP reduces time costs by 85%-99% compared to existing methods.
Experimental validation on Java and C programs demonstrates effectiveness and efficiency.
Abstract
Test case prioritization (TCP) aims to reorder the regression test suite with a goal of increasing the fault detection rate. Various TCP techniques have been proposed based on different prioritization strategies. Among them, the greedy-based techniques are the most widely-used TCP techniques. However, existing greedy-based techniques usually reorder all candidate test cases in prioritization iterations, resulting in both efficiency and effectiveness problems. In this paper, we propose a generic partial attention mechanism, which adopts the previous priority values (i.e., the number of additionally-covered code units) to avoid considering all candidate test cases. Incorporating the mechanism with the additional-greedy strategy, we implement a novel coverage-based TCP technique based on partition ordering (OCP). OCP first groups the candidate test cases into different partitions and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Software System Performance and Reliability · Software Engineering Research
