首页> 外文会议>IEEE International Conference on Software Maintenance >An empirical analysis of the distribution of unit test smells and their impact on software maintenance
【24h】

An empirical analysis of the distribution of unit test smells and their impact on software maintenance

机译:单位试验气味分布的实证分析及其对软件维护的影响

获取原文

摘要

Unit testing represents a key activity in software development and maintenance. Test suites with high internal quality facilitate maintenance activities, such as code comprehension and regression testing. Several guidelines have been proposed to help developers write good test suites. Unfortunately, such rules are not always followed resulting in the presence of bad test code smells (or simply test smells). Test smells have been defined as poorly designed tests and their presence may negatively affect the maintainability of test suites and production code. Despite the many studies that address code smells in general, until now there has been no empirical evidence regarding test smells (i) distribution in software systems nor (ii) their impact on the maintainability of software systems. This paper fills this gap by presenting two empirical studies. The first study is an exploratory analysis of 18 software systems (two industrial and 16 open source) aimed at analyzing the distribution of test smells in source code. The second study, a controlled experiment involving twenty master students, is aimed at analyzing whether the presence of test smells affects the comprehension of source code during software maintenance. The results show that (i) test smells are widely spread throughout the software systems studied and (ii) most of the test smells have a strong negative impact on the comprehensibility of test suites and production code.
机译:单元测试代表软件开发和维护中的关键活动。具有高内部质量的测试套件促进维护活动,如代码理解和回归测试。已经提出了一些指导方针来帮助开发人员编写良好的测试套件。不幸的是,这种规则并不总是遵循,导致存在错误的测试代码气味(或简单地测试气味)。测试气味被定义为设计不良的测试,并且它们的存在可能会对测试套件和生产代码的可维护性产生负面影响。尽管涉及守则的许多研究通常,直到现在,目前迄今为止没有关于软件系统中的测试气味(i)分布的经验证据,也没有对软件系统可维护性的影响。本文通过呈现两个实证研究来填补这种差距。第一项研究是对18个软件系统(两个工业和16个开源)的探索性分析,旨在分析源代码中的测试气味的分布。第二项研究是一种涉及二十多名硕士学生的受控实验,旨在分析测试气味的存在是否会影响软件维护期间源代码的理解。结果表明,(i)测试气味广泛传播,在整个软件系统中,(ii)大多数测试气味对测试套件和生产代码的可理解性具有很强的负面影响。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号