Test Case Prioritization Using Partial Attention

Quanjun Zhang, Chunrong Fang, Weisong Sun, Shengcheng Yu, Yutao Xu
6/22/2022
cs.SE

Official code: QuanjunZhang/OCP (0 stars, C, last commit 2021-11-23).

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.

Show full abstract

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 updates the partitions on the descending order. We conduct a comprehensive experiment on 19 versions of Java programs and 30 versions of C programs to compare the effectiveness and efficiency of OCP with six state-of-the-art TCP techniques: total-greedy, additional-greedy, lexicographical-greedy, unify-greedy, art-based, and search-based. The experimental results show that OCP achieves a better fault detection rate than the state-of-the-arts. Moreover, the time costs of OCP are found to achieve 85%-99% improvement than most state-of-the-arts.

View on arXivView PDF

Code Implementations(1)

QuanjunZhang/OCPOfficial100%

[2022 JSS] Test case prioritization using partial attention

00C, JavaMay 13, 20215 years ago

Similar Papers

Cite this paper

@article{zhang2022test,
  title  = {Test Case Prioritization Using Partial Attention},
  author = {Quanjun Zhang and Chunrong Fang and Weisong Sun and Shengcheng Yu and Yutao Xu},
  year   = {2022},
  eprint = {2206.11026},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.11026}
}

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/2206.11026.svg)](https://codeofpaper.com/paper/2206.11026)

Discussion