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 条
  • [1] Defect Prediction Guided Search-Based Software Testing
    Perera, Anjana
    Aleti, Aldeida
    Bohme, Marcel
    Turhan, Burak
    2020 35TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2020), 2020, : 448 - 460
  • [2] An Experimental Assessment of Using Theoretical Defect Predictors to Guide Search-Based Software Testing
    Perera, Anjana
    Aleti, Aldeida
    Turhan, Burak
    Bohme, Marcel
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (01) : 131 - 146
  • [3] Using Defect Prediction to Improve the Bug Detection Capability of Search-Based Software Testing
    Perera, Anjana
    2020 35TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE 2020), 2020, : 1170 - 1174
  • [4] The Cloudification Perspectives of Search-based Software Testing
    Martin, Diego
    Panichella, Sebastiano
    2019 IEEE/ACM 12TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING (SBST 2019), 2019, : 5 - 6
  • [5] SBSTFrame: a Framework to Search-Based Software Testing
    Machado, Bruno N.
    Camilo-Junior, Celso G.
    Rodrigues, Cassio L.
    Quijano, Eduardo H. D.
    2016 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC), 2016, : 4106 - 4111
  • [6] The Maturation of Search-Based Software Testing: Successes and Challenges
    Cohen, Myra B.
    2019 IEEE/ACM 12TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING (SBST 2019), 2019, : 13 - 14
  • [7] An extensive evaluation of search-based software testing: a review
    Khari, Manju
    Kumar, Prabhat
    SOFT COMPUTING, 2019, 23 (06) : 1933 - 1946
  • [8] An extensive evaluation of search-based software testing: a review
    Manju Khari
    Prabhat Kumar
    Soft Computing, 2019, 23 : 1933 - 1946
  • [9] Transferring interactive search-based software testing to industry
    Marculescu, Bogdan
    Feldt, Robert
    Torkar, Richard
    Poulding, Simon
    JOURNAL OF SYSTEMS AND SOFTWARE, 2018, 142 : 156 - 170
  • [10] HASPO: Harmony Search-Based Parameter Optimization for Just-in-Time Software Defect Prediction in Maritime Software
    Kang, Jonggu
    Kwon, Sunjae
    Ryu, Duksan
    Baik, Jongmoon
    APPLIED SCIENCES-BASEL, 2021, 11 (05): : 1 - 25