arrow
返回

B-Refactoring: Automatic test code refactoring to improve dynamic analysis

delete2016-08-01
delete22
delete
OA
AI
J
Jifeng Xuan *
B
Benoit Cornu
M
Matías Martínez
B
Benoît Baudry
L
Lionel Seinturier
M
Martin Monperrus
DOI:10.1016/j.infsof.2016.04.016delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Context: Developers design test suites to verify that software meets its expected behaviors. Many dynamic analysis techniques are performed on the exploitation of execution traces from test cases. In practice, one test case may imply various behaviors. However, the execution of a test case only yields one trace, which can hide the others. Objective: In this article, we propose a new technique of test code refactoring, called B-Refactoring. The idea behind B-Refactoring is to split a test case into small test fragments, which cover a simpler part of the control flow to provide better support for dynamic analysis. Method: For a given dynamic analysis technique, B-Refactoring monitors the execution of test cases and constructs small test cases without loss of the testability. We apply B-Refactoring to assist two existing analysis tasks: automatic repair of if-condition bugs and automatic analysis of exception contracts. Results: Experimental results show that B-Refactoring can effectively improve the execution traces of the test suite. Real-world bugs that could not be previously fixed with the original test suites are fixed after applying B-Refactoring; meanwhile, exception contracts are better verified via applying B-Refactoring to original test suites. Conclusions: We conclude that applying B-Refactoring improves the execution traces of test cases for dynamic analysis. This improvement can enhance existing dynamic analysis tasks. (c) 2016 Elsevier B.V. All rights reserved.
Keyword:
SUPPORT
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Information and Software Technology 封面图
Information and Software Technology
IF:
4.3
论文数:
3.7K
被引数:
7.7K

机构

I
Inria
学者数:
3.5K
论文数: 2.5K
被引数: 343
U
universite de lille
学者数:
2.7W
论文数: 2.0W
被引数: 15
W
wuhan university
学者数:
8.1W
论文数: 5.8W
被引数: 70
学者 查看更多机构
引用论文

引用论文

err分享
err收藏
Automated Behavioral Testing of Refactoring Engines
err2013-02-01
err83
PREAI
errSoares, Gustavo; Gheyi, Rohit; Massoni, Tiago
err分享
err收藏
GenProg: A Generic Method for Automatic Software Repair
err2012-01-01
err594
PREAI
errLe Goues, Claire; ThanhVu Nguyen; Forrest, Stephanie; Weimer, Westley
err分享
err收藏
Nopol: Automatic Repair of Conditional Statement Bugs in Java Programs
err2017-01-01
err295
errOAAI
errXuan, Jifeng; Martinez, Matias; DeMarco, Favio; Clement, Maxime; Lamelas Marcote, Sebastian; Durieux, Thomas; Le Berre, Daniel; Monperrus, Martin
err分享
err收藏
学者 查看更多内容