Analyzing Refactorings' Impact on Regression Test Cases

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

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

8 Citations (Scopus)

Abstract

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%.

Original languageEnglish
Title of host publicationProceedings - 2015 IEEE 39th Annual Computer Software and Applications Conference, COMPSAC 2015
EditorsGang Huang, Jingwei Yang, Sheikh Iqbal Ahamed, Pao-Ann Hsiung, Carl K. Chang, William Chu, Ivica Crnkovic
PublisherIEEE Computer Society
Pages222-231
Number of pages10
ISBN (Electronic)9781467365635
DOIs
Publication statusPublished - 21 Sept 2015
Event39th IEEE Annual Computer Software and Applications Conference, COMPSAC 2015 - Taichung, Taiwan, Province of China
Duration: 1 Jul 20155 Jul 2015

Publication series

NameProceedings - International Computer Software and Applications Conference
Volume2
ISSN (Print)0730-3157

Conference

Conference39th IEEE Annual Computer Software and Applications Conference, COMPSAC 2015
Country/TerritoryTaiwan, Province of China
CityTaichung
Period1/07/155/07/15

Fingerprint

Dive into the research topics of 'Analyzing Refactorings' Impact on Regression Test Cases'. Together they form a unique fingerprint.

Cite this