On the Impact of Lower Recall and Precision in Defect Prediction for Guiding Search-based Software Testing

被引:0
|
作者
Perera, Anjana [1 ,2 ]
Turhan, Burak [3 ,4 ]
Aleti, Aldeida [1 ]
Boehme, Marcel [4 ,5 ]
机构
[1] Monash Univ, Fac Informat Technol, Wellington Rd, Melbourne, Vic 3800, Australia
[2] Oracle Labs, Brisbane, Qld, Australia
[3] Univ Oulu, Fac Informat Technol & Elect Engn, Pentti Kaiteran Katu 1,POB 3000, Oulu 90570, Finland
[4] Monash Univ, Melbourne, Vic, Australia
[5] Max Planck Inst Secur & Privacy, Univ Str 140, D-44799 Bochum, Germany
基金
澳大利亚研究理事会;
关键词
Search-based software testing; automated test generation; defect prediction; STATIC CODE ATTRIBUTES; MODELS; FIND;
D O I
10.1145/3655022
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Defect predictors, static bug detectors, and humans inspecting the code can propose locations in the program that are more likely to be buggy before they are discovered through testing. Automated test generators such as search-based software testing (SBST) techniques can use this information to direct their search for test cases to likely buggy code, thus speeding up the process of detecting existing bugs in those locations. Often the predictions given by these tools or humans are imprecise, which can misguide the SBST technique and may deteriorate its performance. In this article, we study the impact of imprecision in defect prediction on the bug detection effectiveness of SBST. Our study finds that the recall of the defect predictor, i.e., the proportion of correctly identified buggy code, has a significant impact on bug detection effectiveness of SBST with a large effect size. More precisely, the SBST technique detects 7.5 fewer bugs on average (out of 420 bugs) for every 5% decrements of the recall. However, the effect of precision, a measure for false alarms, is not of meaningful practical significance, as indicated by a very small effect size. In the context of combining defect prediction and SBST, our recommendation is to increase the recall of defect predictors as a primary objective and precision as a secondary objective. In our experiments, we find that 75% precision is as good as 100% precision. To account for the imprecision of defect predictors, in particular low recall values, SBST techniques should be designed to search for test cases that also cover the predicted non-buggy parts of the program, while prioritising the parts that have been predicted as buggy.
引用
收藏
页数:27
相关论文
共 50 条
  • [41] Dictionary Learning Based Software Defect Prediction
    Jing, Xiao-Yuan
    Ying, Shi
    Zhang, Zhi-Wu
    Wu, Shan-Shan
    Liu, Jin
    36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014), 2014, : 414 - 423
  • [42] The impact of the distance metric and measure on SMOTE-based techniques in software defect prediction
    Feng, Shuo
    Keung, Jacky
    Zhang, Peichang
    Xiao, Yan
    Zhang, Miao
    INFORMATION AND SOFTWARE TECHNOLOGY, 2022, 142
  • [43] Credibility Based Imbalance Boosting Method for Software Defect Proneness Prediction
    Tong, Haonan
    Wang, Shihai
    Li, Guangling
    APPLIED SCIENCES-BASEL, 2020, 10 (22): : 1 - 29
  • [44] Collaborative filtering based recommendation of sampling methods for software defect prediction
    Sun, Zhongbin
    Zhang, Jingqi
    Sun, Heli
    Zhu, Xiaoyan
    APPLIED SOFT COMPUTING, 2020, 90
  • [45] Assessing the Significant Impact of Concept Drift in Software Defect Prediction
    Kabir, Md Alamgir
    Keung, Jacky W.
    Bennin, Kwabena E.
    Zhang, Miao
    2019 IEEE 43RD ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE (COMPSAC), VOL 1, 2019, : 53 - 58
  • [46] TheWeights Can Be Harmful: Pareto Search versus Weighted Search in Multi-objective Search-based Software Engineering
    Chen, Tao
    Li, Miqing
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (01)
  • [47] FinHunter: Improved Search-Based Test Generation for Structural Testing of FinTech Systems
    Ding, Xuanwen
    Wang, Qingshun
    Liu, Dan
    Xu, Lihua
    Xiao, Jun
    Zhang, Bojun
    Li, Xue
    Dou, Liang
    He, Liang
    Xie, Tao
    COMPANION PROCEEDINGS OF THE 32ND ACM INTERNATIONAL CONFERENCE ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, FSE COMPANION 2024, 2024, : 10 - 20
  • [48] A systematic review of search-based testing for non-functional system properties
    Afzal, Wasif
    Torkar, Richard
    Feldt, Robert
    INFORMATION AND SOFTWARE TECHNOLOGY, 2009, 51 (06) : 957 - 976
  • [49] The Impact of Data Quality on Software Testing Effort Prediction
    Radlinski, Lukasz
    ELECTRONICS, 2023, 12 (07)
  • [50] Search-based Optimization for the Testing Resource Allocation Problem: Research Trends and Opportunities
    Pietrantuono, Roberto
    Russo, Stefano
    PROCEEDINGS 2018 IEEE/ACM 11TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING (SBST), 2018, : 6 - 12