Analyzing Refactorings' Impact on Regression Test Cases

Yuan Gao, Hui Liu*, Xiaozhong Fan, Zhendong Niu, Bridget Nyirongo

*此作品的通讯作者

科研成果: 书/报告/会议事项章节会议稿件同行评审

8 引用 (Scopus)

摘要

Software refactoring is to improve readability, maintainability and expansibility of software by adjusting its internal structure, whereas the external behaviors of software are not changed. Although software refactoring should not change the external behaviors of software systems, they might make a regression test case obsolete (with syntax and runtime errors) or fail. People have investigated which refactorings had an influence on regression test case. However, how test cases are influenced by refactorings and what kind of errors might be introduced remain unknown. To this end, in this paper, we proposed an approach to analyze refactorings' impact on regression test cases. On one hand, we analyzed why regression test cases failed. On the other hand, we analyzed the influence of refactorings on software interfaces. Based on the analysis, we built up a mapping between refactorings and test case failure. Such a mapping can be used to guide test case repair automation where test cases are made obsolete by refactorings. The approach was evaluated on five open-source applications. Evaluation results suggest that the precision of the approach is greater than 80%.

源语言英语
主期刊名Proceedings - 2015 IEEE 39th Annual Computer Software and Applications Conference, COMPSAC 2015
编辑Gang Huang, Jingwei Yang, Sheikh Iqbal Ahamed, Pao-Ann Hsiung, Carl K. Chang, William Chu, Ivica Crnkovic
出版商IEEE Computer Society
222-231
页数10
ISBN(电子版)9781467365635
DOI
出版状态已出版 - 21 9月 2015
活动39th IEEE Annual Computer Software and Applications Conference, COMPSAC 2015 - Taichung, 中国台湾
期限: 1 7月 20155 7月 2015

出版系列

姓名Proceedings - International Computer Software and Applications Conference
2
ISSN(印刷版)0730-3157

会议

会议39th IEEE Annual Computer Software and Applications Conference, COMPSAC 2015
国家/地区中国台湾
Taichung
时期1/07/155/07/15

指纹

探究 'Analyzing Refactorings' Impact on Regression Test Cases' 的科研主题。它们共同构成独一无二的指纹。

引用此