...
首页> 外文期刊>International journal of software engineering and knowledge engineering >Investigating the Effect of Aspect-Oriented Refactoring on the Unit Testing Effort of Classes: An Empirical Evaluation
【24h】

Investigating the Effect of Aspect-Oriented Refactoring on the Unit Testing Effort of Classes: An Empirical Evaluation

机译:研究面向方面的重构对类的单元测试工作量的影响:一项实证评估

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

摘要

This paper aims at investigating empirically the effect of aspect-oriented (AO) refactoring on the unit testability of classes in object-oriented software. The unit testability of classes has been addressed from the perspective of the unit testing effort, and particularly from the perspective of the unit test cases (TCs) construction. We investigated, in fact, different research questions: (1) the impact of AO refactoring on source code attributes (size, complexity, coupling, cohesion and inheritance), attributes that are mostly related to the unit testability of classes, (2) the impact of AO refactoring on unit test code attributes (size, assertions, invocations and data creation), attributes that are indicators of the effort involved to write the code of unit TCs, and (3) the relationships between the variations observed after AO refactoring in both source code and unit test code attributes. We used in the study different techniques: correlation analysis, statistical tests and linear regression. We performed an empirical evaluation using data collected from three well-known open source (Java) software systems (JHOTDRAW, HSQLBD and PETSTORE) that have been refactored using AO programming (AspectJ). Results suggest that: (1) overall, the effort involved in the construction of unit TCs of refactored classes has been reduced, (2) the variations of source code attributes have more impact on methods invocation between unit TCs, and finally (3) the variations of unit test code attributes are more influenced by the variation of the complexity of refactored classes compared to the other class attributes.
机译:本文旨在实证研究面向方面(AO)重构对面向对象软件中类的单元可测试性的影响。从单元测试工作的角度,特别是从单元测试用例(TC)构造的角度,解决了类的单元可测试性。实际上,我们调查了不同的研究问题:(1)AO重构对源代码属性(大小,复杂性,耦合,内聚和继承)的影响,这些属性主要与类的单元可测试性有关,(2) AO重构对单元测试代码属性(大小,断言,调用和数据创建)的影响,这些属性指示编写单元TC的代码所涉及的工作,以及(3)在AO重构后观察到的变化之间的关系源代码和单元测试代码属性。我们在研究中使用了不同的技术:相关分析,统计检验和线性回归。我们使用从三个著名的开源(Java)软件系统(JHOTDRAW,HSQLBD和PETSTORE)中收集的数据进行了实证评估,这些数据已使用AO编程(AspectJ)进行了重构。结果表明:(1)总体上,减少了重构类的单元TC的构造工作;(2)源代码属性的变化对单元TC之间的方法调用有更大的影响,最后(3)与其他类属性相比,重构的类的复杂性的变化对单元测试代码属性的变化影响更大。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号