arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.11685cs.SE
收藏

重构行为与缺陷的关系:一种区分复制

On the Relationship between Refactoring Actions and Bugs: A Differentiated Replication

Massimiliano Di Penta, Gabriele Bavota, Fiorella Zampetti

摘要:

软件重构的目标是在保持系统外部行为的同时提高代码质量。虽然原则上重构是一种行为保留活动,但Bavota等人在2012年提出的一项研究报告了一些重构行为的倾向性(例如,上拉法)诱发故障。这项研究是通过挖掘三个系统的重构活动和错误来进行的。利用采矿软件库领域取得的进步(例如,更好的工具,以检测重构行动在提交级别的粒度),我们提出了一个有区别的复制的工作,由Bavota等人。其中我们(i)克服了一些弱点,影响他们的实验设计,(ii)回答相同的研究问题,原来的研究对一个更大的数据集(3对103个系统),以及(iii)用定性分析补充重构和bug之间关系的定量分析,手动检查提交,旨在验证重构操作触发bug修复活动的程度。我们的定量分析的结果证实了重复研究的结果,而定性分析部分揭开了重构动作在错误引入中所扮演的角色。

英文摘要:

Software refactoring aims at improving code quality while preserving the system's external behavior. Although in principle refactoring is a behavior-preserving activity, a study presented by Bavota et al. in 2012 reported the proneness of some refactoring actions (e.g., pull up method) to induce faults. The study was performed by mining refactoring activities and bugs from three systems. Taking profit of the advances made in the mining software repositories field (e.g., better tools to detect refactoring actions at commit-level granularity), we present a differentiated replication of the work by Bavota et al. in which we (i) overcome some of the weaknesses that affect their experimental design, (ii) answer the same research questions of the original study on a much larger dataset (3 vs 103 systems), and (iii) complement the quantitative analysis of the relationship between refactoring and bugs with a qualitative, manual inspection of commits aimed at verifying the extent to which refactoring actions trigger bug-fixing activities. The results of our quantitative analysis confirm the findings of the replicated study, while the qualitative analysis partially demystifies the role played by refactoring actions in the bug introduction.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑