...
首页> 外文期刊>Innovations in Systems and Software Engineering >Measuring the effect of clone refactoring on the size of unit test cases in object-oriented software: an empirical study
【24h】

Measuring the effect of clone refactoring on the size of unit test cases in object-oriented software: an empirical study

机译:测量克隆重构对面向对象软件中单元测试用例大小的影响:实证研究

获取原文
获取原文并翻译 | 示例
           

摘要

This paper aims at empirically measuring the effect of clone refactoring on the size of unit test cases in object-oriented software. We investigated various research questions related to the: (1) impact of clone refactoring on source code attributes (particularly size, complexity and coupling) that are related to testability of classes, (2) impact of clone refactoring on the size of unit test cases, (3) correlations between the variations observed after clone refactoring in both source code attributes and the size of unit test cases and (4) variations after clone refactoring in the source code attributes that are more associated with the size of unit test cases. We used different metrics to quantify the considered source code attributes and the size of unit test cases. To investigate the research questions, and develop predictive and explanatory models, we used various data analysis and modeling techniques, particularly linear regression analysis and five machine learning algorithms (C4.5, KNN, Naive Bayes, Random Forest and Support Vector Machine). We conducted an empirical study using data collected from two open-source Java software systems (ANT and ARCHIVA) that have been clone refactored. Overall, the paper contributions can be summarized as: (1) the results revealed that there is a strong and positive correlation between code clone refactoring and reduction in the size of unit test cases, (2) we showed how code quality attributes that are related to testability of classes are significantly improved when clones are refactored, (3) we observed that the size of unit test cases can be significantly reduced when clone refactoring is applied, and (4) complexity/size measures are commonly associated with the variations of the size of unit test cases when compared to coupling.
机译:本文旨在经验测量克隆重构对面向对象软件的单位测试用例大小的影响。我们调查了与克隆重构在源代码属性(特别是大小,复杂性和耦合)上有关的各种研究问题(特别是大小,复杂性和耦合),该源代码属性与克隆重构对单位测试用例大小的克隆重构的影响(3)在源代码属性中克隆重构和单位测试用例的大小之间观察到的变型之间的相关性,并且在源代码属性中克隆重构之后的源代码属性中的源代码属性的变化,这些与单元测试用例的大小相关联。我们使用不同的指标来量化考虑的源代码属性和单元测试用例的大小。为了调查研究问题,开发预测和解释模型,我们使用了各种数据分析和建模技术,特别是线性回归分析和五种机器学习算法(C4.5,KNN,NAIVE Bayes,随机森林和支持向量机)。我们使用从两种开源Java软件系统(ANT和ARCHIVA)收集的数据进行了实证研究,该系统已被克隆重构。总体而言,纸质贡献可以概括为:(1)结果表明,代码克隆重构和单位测试用例大小之间存在强烈且正相关,(2)我们展示了如何相关的代码质量属性当克隆重构时,(3)当克隆重构被应用时,我们观察到(3)当克隆重构时,可以显着降低单位测试用例的尺寸,并且(4)复杂性/尺寸措施通常与克隆的复杂性/尺寸措施与与耦合相比单位测试用例的大小。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号