The Effectiveness of Refactoring, Based on a Compatibility Testing Taxonomy and a Dependency Graph

S. Counsell, R. Hierons, R. Najjar, G. Loizou, Y. Hassoun
{"title":"The Effectiveness of Refactoring, Based on a Compatibility Testing Taxonomy and a Dependency Graph","authors":"S. Counsell, R. Hierons, R. Najjar, G. Loizou, Y. Hassoun","doi":"10.1109/TAIC-PART.2006.33","DOIUrl":null,"url":null,"abstract":"In this paper, we describe and then appraise a testing taxonomy proposed by van Deursen and Moonen (VD&M) based on the post-refactoring repeatability of tests. Four categories of refactoring are identified by VD&M ranging from semantic-preserving to incompatible, where, for the former, no new tests are required and for the latter, a completely new test set has to be developed. In our appraisal of the taxonomy, we heavily stress the need for the inter-dependence of the refactoring categories to be considered when making refactoring decisions and we base that need on a refactoring dependency graph developed as part of the research. We demonstrate that while incompatible refactorings may be harmful and time-consuming from a testing perspective, semantic-preserving refactorings can have equally unpleasant hidden ramifications despite their advantages. In fact, refactorings which fall into neither category have the most interesting properties. We support our results with empirical refactoring data drawn from seven Java open-source systems (OSS) and from the same analysis form a tentative categorization of code smells","PeriodicalId":441264,"journal":{"name":"Testing: Academic & Industrial Conference - Practice And Research Techniques (TAIC PART'06)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2006-08-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"33","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Testing: Academic & Industrial Conference - Practice And Research Techniques (TAIC PART'06)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/TAIC-PART.2006.33","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 33

Abstract

In this paper, we describe and then appraise a testing taxonomy proposed by van Deursen and Moonen (VD&M) based on the post-refactoring repeatability of tests. Four categories of refactoring are identified by VD&M ranging from semantic-preserving to incompatible, where, for the former, no new tests are required and for the latter, a completely new test set has to be developed. In our appraisal of the taxonomy, we heavily stress the need for the inter-dependence of the refactoring categories to be considered when making refactoring decisions and we base that need on a refactoring dependency graph developed as part of the research. We demonstrate that while incompatible refactorings may be harmful and time-consuming from a testing perspective, semantic-preserving refactorings can have equally unpleasant hidden ramifications despite their advantages. In fact, refactorings which fall into neither category have the most interesting properties. We support our results with empirical refactoring data drawn from seven Java open-source systems (OSS) and from the same analysis form a tentative categorization of code smells
基于兼容性测试分类和依赖关系图的重构的有效性
在本文中,我们描述并评估了van Deursen和Moonen (VD&M)提出的基于重构后测试可重复性的测试分类法。VD&M确定了四类重构,从语义保留到不兼容,其中,对于前者,不需要新的测试,而对于后者,必须开发一个全新的测试集。在我们对分类法的评估中,我们着重强调了在做出重构决策时需要考虑重构类别之间的相互依赖性,并且我们将这种需求建立在作为研究的一部分开发的重构依赖关系图的基础上。我们证明,从测试的角度来看,不兼容的重构可能是有害且耗时的,而保持语义的重构尽管具有优势,但也可能具有同样令人不快的隐藏后果。事实上,不属于这两类的重构具有最有趣的特性。我们用来自七个Java开源系统(OSS)的经验重构数据来支持我们的结果,这些数据来自于对代码气味进行尝试性分类的相同分析
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信