首页> 外文会议>IEEE International Conference on Machine Learning and Applications >Exploring the Impact of Clone Refactoring on Test Code Size in Object-Oriented Software
【24h】

Exploring the Impact of Clone Refactoring on Test Code Size in Object-Oriented Software

机译:探索克隆重构对面向对象软件中测试代码大小的影响

获取原文

摘要

This paper aims at exploring the impact of clone refactoring on the test code size, in terms of number of operations, in object-oriented software. We investigated three research questions: (1) the impact of clone refactoring on three important source code attributes (coupling, complexity and size) that are related to unit testability of classes, (2) the impact of clone refactoring on the test code size, and (3) the variations after clone refactoring in the source code attributes that have the most important impact on the test code size. We used linear regression and three popular machine learning techniques (i.e., k-Nearest Neighbors, Naïve Bayes and Random Forest) to develop predictive and explanatory models. We used data collected from an open source Java software system (ANT) that has been refactored using clone-refactoring techniques. The analyses indicate that there is a strong and positive relationship between clone refactoring and the reduction of the test code size. Results show that: (1) the source code attributes of refactored classes have been significantly improved, (2) the test code size of refactored classes has been significantly reduced, and (3) the variations of the test code size are more influenced by the variations of the complexity and size of refactored classes compared to coupling.
机译:本文旨在探讨克隆重构对面向对象软件中测试代码大小(在操作数量方面)的影响。我们调查了三个研究问题:(1)克隆重构对与类的单元可测试性相关的三个重要源代码属性(耦合,复杂性和大小)的影响;(2)克隆重构对测试代码大小的影响; (3)克隆重构后的源代码属性中的变化对测试代码大小具有最重要的影响。我们使用线性回归和三种流行的机器学习技术(即k最近邻,朴素贝叶斯和随机森林)来开发预测和解释模型。我们使用从开放源Java软件系统(ANT)收集的数据,该数据已使用克隆重构技术进行了重构。分析表明,克隆重构与测试代码大小的减少之间存在牢固而积极的关系。结果表明:(1)重构类的源代码属性得到了显着改善;(2)重构类的测试代码量得到了显着减少;(3)测试代码量的变化更多地受到重构的影响。与耦合相比,重构类的复杂度和大小的变化。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号