Ant Colony System With Sorting-Based Local Search for Coverage-Based Test Case Prioritization

被引:15
作者
Lu, Chengyu [2 ]
Zhong, Jinghui [1 ]
Xue, Yinxing [3 ]
Feng, Liang [4 ]
Zhang, Jun [5 ]
机构
[1] South China Univ Technol, Sch Comp Sci & Engn, Comp Sci, Guangzhou 510006, Peoples R China
[2] South China Univ Technol, Sch Comp Sci & Engn, Guangzhou 510006, Peoples R China
[3] Univ Sci & Technol China, Sch Comp Sci & Technol, Hefei 230027, Peoples R China
[4] Chongqing Univ, Sch Comp Sci, Chongqing 400044, Peoples R China
[5] Victoria Univ, Melbourne, Vic 8001, Australia
基金
中国国家自然科学基金;
关键词
Search problems; Testing; Software engineering; Computer science; Stochastic processes; Graphics processing units; Ant colony system (ACS); regression testing; statement coverage; test case prioritization (TCP); GENETIC ALGORITHM; OPTIMIZATION; INTEGRATION; CODE;
D O I
10.1109/TR.2019.2930358
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Test case prioritization (TCP) is a popular regression testing technique in software engineering field. The task of TCP is to schedule the execution order of test cases so that certain objective (e.g., code coverage) can be achieved quickly. In this article, we propose an efficient ant colony system framework for the TCP problem, with the aim of maximizing the code coverage as soon as possible. In the proposed framework, an effective heuristic function is proposed to guide the ants to construct solutions based on additional statement coverage among remaining test cases. Besides, a sorting-based local search mechanism is proposed to further accelerate the convergence speed of the algorithm. Experimental results on different benchmark problems, and a real-world application, have shown that the proposed framework can outperform several state-of-the-art methods, in terms of solution quality and search efficiency.
引用
收藏
页码:1004 / 1020
页数:17
相关论文
共 63 条
  • [61] Yuan FF, 2015, INT CONF SOFTW ENG, P1010, DOI 10.1109/ICSESS.2015.7339225
  • [62] Zhang LM, 2013, PROCEEDINGS OF THE 35TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2013), P192, DOI 10.1109/ICSE.2013.6606565
  • [63] Software unit test coverage and adequacy
    Zhu, H
    Hall, PAV
    May, JHR
    [J]. ACM COMPUTING SURVEYS, 1997, 29 (04) : 366 - 427