Leveraging Models to Reduce Test Cases in Software Repositories

被引:3
作者
Gharachorlu, Golnaz [1 ]
Sumner, Nick [1 ]
机构
[1] Simon Fraser Univ, Burnaby, BC, Canada
来源
2021 IEEE/ACM 18TH INTERNATIONAL CONFERENCE ON MINING SOFTWARE REPOSITORIES (MSR 2021) | 2021年
基金
加拿大自然科学与工程研究理事会;
关键词
test case reduction; semantic validity; machine learning; compilation errors;
D O I
10.1109/MSR52588.2021.00035
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Given a failing test case, test case reduction yields a smaller test case that reproduces the failure. This process can be time consuming due to repeated trial and error with smaller test cases. Current techniques speed up reduction by only exploring syntactically valid candidates, but they still spend significant effort on semantically invalid candidates. In this paper, we propose a model-guided approach to speed up test case reduction. The approach trains a model of semantic properties driven by syntactic test case properties. By using this model, we can skip testing even syntactically valid test case candidates that are unlikely to succeed. We evaluate this model-guided reduction on a suite of 14 large fuzzer-generated C test cases from the bug repositories of two well-known C compilers, GCC and Clang. Our results show that with an average precision of 77%, we can decrease the number of removal trials by 14% to 61%. We observe a 30% geomean improvement in reduction time over the state of the art technique while preserving similar reduction power.
引用
收藏
页码:230 / 241
页数:12
相关论文
共 29 条
  • [11] Hodova r, 2016, Proceedings of the 7th International Workshop on Automating Test Case Design, Selection, and Evaluation, A-TEST@SIGSOFT FSE 2016, Seattle, WA, USA, November 18, 2016, P31
  • [12] Coarse Hierarchical Delta Debugging
    Hodovan, Renata
    Kiss, Akos
    Gyimothy, Tibor
    [J]. 2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME), 2017, : 194 - 203
  • [13] Tree Preprocessing and Test Outcome Caching for Efficient Hierarchical Delta Debugging
    Hodovan, Renata
    Kiss, Akos
    Gyimothy, Tibor
    [J]. 2017 IEEE/ACM 12TH INTERNATIONAL WORKSHOP ON AUTOMATION OF SOFTWARE TESTING (AST), 2017, : 23 - 29
  • [14] Practical Improvements to the Minimizing Delta Debugging Algorithm
    Hodovan, Renata
    Kiss, Akos
    [J]. ICSOFT-EA: PROCEEDINGS OF THE 11TH INTERNATIONAL JOINT CONFERENCE ON SOFTWARE TECHNOLOGIES - VOL. 1, 2016, : 241 - 248
  • [15] HDDr: A Recursive Variant of the Hierarchical Delta Debugging Algorithm
    Kiss, Akos
    Hodovan, Renata
    Gyimothy, Tibor
    [J]. PROCEEDINGS OF THE 9TH ACM SIGSOFT INTERNATIONAL WORKSHOP ON AUTOMATING TEST CASE DESIGN, SELECTION, AND EVALUATION (A-TEST '18), 2018, : 16 - 22
  • [16] Kruger Philipp, 2019, Bache- lor's thesis
  • [17] MacIver D. R., 2019, NOTES TEST CASE REDU
  • [18] DeepDelta: Learning to Repair Compilation Errors
    Mesbah, Ali
    Rice, Andrew
    Johnston, Emily
    Glorioso, Nick
    Aftandilian, Edward
    [J]. ESEC/FSE'2019: PROCEEDINGS OF THE 2019 27TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, 2019, : 925 - 936
  • [19] Misherghi G., 2006, 28th International Conference on Software Engineering Proceedings, P142, DOI 10.1145/1134285.1134307
  • [20] Misherghi G. S., 2007, THESIS U CALIFORNIA