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 条
  • [21] DiverGet: a Search-Based Software Testing approach for Deep Neural Network Quantization assessment
    Yahmed, Ahmed Haj
    Ben Braiek, Houssem
    Khomh, Foutse
    Bouzidi, Sonia
    Zaatour, Rania
    EMPIRICAL SOFTWARE ENGINEERING, 2022, 27 (07)
  • [22] DiverGet: a Search-Based Software Testing approach for Deep Neural Network Quantization assessment
    Ahmed Haj Yahmed
    Houssem Ben Braiek
    Foutse Khomh
    Sonia Bouzidi
    Rania Zaatour
    Empirical Software Engineering, 2022, 27
  • [23] Search-Based Prediction of Fault Count Data
    Afzal, Wasif
    Torkar, Richard
    Feldt, Robert
    1ST INTERNATIONAL SYMPOSIUM ON SEARCH BASED SOFTWARE ENGINEERING, PROCEEDINGS, 2009, : 35 - 38
  • [24] It really does matter how you normalize the branch distance in search-based software testing
    Arcuri, Andrea
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2013, 23 (02): : 119 - 147
  • [25] 6th International Workshop on Search-Based Software Testing (SBST 2013): Workshop Summary
    Poulding, Simon
    Vos, Tanja E. J.
    IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2013), 2013, : 404 - 409
  • [26] Feedback-based integrated prediction: Defect prediction based on feedback from software testing process
    Xiao, Peng
    Liu, Bin
    Wang, Shihai
    JOURNAL OF SYSTEMS AND SOFTWARE, 2018, 143 : 159 - 171
  • [27] Revisiting the Impact of Dependency Network Metrics on Software Defect Prediction
    Gong, Lina
    Rajbahadur, Gopi Krishnan
    Hassan, Ahmed E.
    Jiang, Shujuan
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (12) : 5030 - 5049
  • [28] Threats to validity in search-based predictive modelling for software engineering
    Malhotra, Ruchika
    Khanna, Megha
    IET SOFTWARE, 2018, 12 (04) : 293 - 305
  • [29] Impact of Types of Change on Software Defect Prediction
    Erdem, Atakan
    INTELLIGENT COMPUTING, VOL 2, 2021, 284 : 273 - 283
  • [30] Evaluating Performance of Software Defect Prediction Models Using Area Under Precision-Recall Curve (AUC-PR)
    Khan, Shahzad Ali
    Rana, Zeeshan Ali
    2019 2ND INTERNATIONAL CONFERENCE ON ADVANCEMENTS IN COMPUTATIONAL SCIENCES (ICACS), 2019, : 74 - 79