Incorporating fault-proneness estimations into coverage-based test case prioritization methods

被引:35
|
作者
Mandieh, Mostafa [1 ]
Mirian-Hosseinabadi, Seyed-Hassan [1 ]
Etemadi, Khashayar [1 ]
Nosrati, Ali [1 ]
Jalali, Sajad [1 ]
机构
[1] Sharif Univ Technol, Comp Engn Dept, Tehran 1136511155, Iran
关键词
Regression testing; Test case prioritization; Defect prediction; Machine learning; Bug history; TEST-SUITE REDUCTION; DEFECT PREDICTION; JUNIT; MODELS; NUMBER;
D O I
10.1016/j.infsof.2020.106269
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context During the development process of a software program, regression testing is used to ensure that the correct behavior of the software is retained after updates to the source code. This regression testing becomes costly over time as the number of test cases increases and it makes sense to prioritize test cases in order to execute fault-detecting test cases as soon as possible. There are many coverage-based test case prioritization (TCP) methods that only use the code coverage data to prioritize test cases. By incorporating the fault-proneness estimations of code units into the coverage-based TCP methods, we can improve such techniques. Objective: In this paper, we aim to propose an approach which improves coverage-based TCP methods by considering the fault-proneness distribution over code units. Further, we present the results of an empirical study that shows using our proposed approach significantly improves the additional strategy, which is a widely used coverage-based TCP method. Method: The approach presented in this study uses the bug history of the software in order to introduce a defect prediction method to learn a neural network model. This model is then used to estimate fault-proneness of each area of the source code and then the estimations are incorporated into coverage-based TCP methods. Our proposed approach is a general idea that can be applied to many coverage-based methods, such as the additional and total TCP methods. Results: The proposed methods are evaluated on datasets collected from the development history of five real-world projects including 357 versions in total. The experiments show that using an appropriate bug history can improve coverage-based TCP methods. Conclusion: The proposed approach can be applied to various coverage-based TCP methods and the experiments show that it can improve these methods by incorporating estimations of code units fault-proneness.
引用
收藏
页数:12
相关论文
共 50 条
  • [1] Test case prioritization using test case diversification and fault-proneness estimations
    Mostafa Mahdieh
    Seyed-Hassan Mirian-Hosseinabadi
    Mohsen Mahdieh
    Automated Software Engineering, 2022, 29
  • [2] Test case prioritization using test case diversification and fault-proneness estimations
    Mahdieh, Mostafa
    Mirian-Hosseinabadi, Seyed-Hassan
    Mahdieh, Mohsen
    AUTOMATED SOFTWARE ENGINEERING, 2022, 29 (02)
  • [3] Fault Coverage-Based Test Case Prioritization and Selection Using African Buffalo Optimization
    Singhal, Shweta
    Jatana, Nishtha
    Subahi, Ahmad F.
    Gupta, Charu
    Khalaf, Osamah Ibrahim
    Alotaibi, Youseef
    CMC-COMPUTERS MATERIALS & CONTINUA, 2023, 74 (03): : 6755 - 6774
  • [4] Coverage-Based Clustering and Scheduling Approach for Test Case Prioritization
    Fu, Wenhao
    Yu, Huiqun
    Fan, Guisheng
    Ji, Xiang
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2017, E100D (06): : 1218 - 1230
  • [5] A Random and Coverage-based Approach for Fault Localization Prioritization
    Zhang, Xiao-Yi
    Towey, Dave
    Chen, Tsong Yueh
    Zheng, Zheng
    Cai, Kai-Yuan
    PROCEEDINGS OF THE 28TH CHINESE CONTROL AND DECISION CONFERENCE (2016 CCDC), 2016, : 3354 - 3361
  • [6] Optimized Test Case Generation Based on Operational Profiles with Fault-Proneness Information
    Takagi, Tomohiko
    Beyazit, Mutlu
    SOFTWARE ENGINEERING RESEARCH, MANAGEMENT AND APPLICATIONS, 2015, 578 : 15 - 25
  • [7] A Code Coverage-Based Test Suite Reduction and Prioritization Framework
    Khan, Saif Ur Rehman
    Lee, Sai Peck
    Parizi, Reza Meimandi
    Elahi, Manzoor
    2014 4TH WORLD CONGRESS ON INFORMATION AND COMMUNICATION TECHNOLOGIES (WICT), 2014, : 229 - 234
  • [8] Coverage-based regression test case selection, minimization and prioritization: a case study on an industrial system
    Di Nardo, Daniel
    Alshahwan, Nadia
    Briand, Lionel
    Labiche, Yvan
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2015, 25 (04): : 371 - 396
  • [9] Code Coverage-Based Regression Test Selection and Prioritization in WebKit
    Beszedes, Arpad
    Gergely, Tamas
    Schrettner, Lajos
    Jasz, Judit
    Lango, Laszlo
    Gyimothy, Tibor
    2012 28TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), 2012, : 46 - 55
  • [10] Ant Colony System With Sorting-Based Local Search for Coverage-Based Test Case Prioritization
    Lu, Chengyu
    Zhong, Jinghui
    Xue, Yinxing
    Feng, Liang
    Zhang, Jun
    IEEE TRANSACTIONS ON RELIABILITY, 2020, 69 (03) : 1004 - 1020