首页> 外文会议>IEEE/ACM International Conference on Automated Software Engineering >An empirical investigation into the nature of test smells
【24h】

An empirical investigation into the nature of test smells

机译:对测试气味性质的实证研究

获取原文

摘要

Test smells have been defined as poorly designed tests and, as reported by recent empirical studies, their presence may negatively affect comprehension and maintenance of test suites. Despite this, there are no available automated tools to support identification and repair of test smells. In this paper, we firstly investigate developers' perception of test smells in a study with 19 participants. The results show that developers generally do not recognize (potentially harmful) test smells, highlighting that automated tools for identifying such smells are much needed. However, to build effective tools, deeper insights into the test smells phenomenon are required. To this aim, we conducted a large-scale empirical investigation aimed at analyzing (i) when test smells occur in source code, (ii) what their survivability is, and (iii) whether their presence is associated with the presence of design problems in production code (code smells). The results indicate that test smells are usually introduced when the corresponding test code is committed in the repository for the first time, and they tend to remain in a system for a long time. Moreover, we found various unexpected relationships between test and code smells. Finally, we show how the results of this study can be used to build effective automated tools for test smell detection and refactoring.
机译:测试气味被定义为设计不良的测试,并且,根据最近的经验研究报告,它们的存在可能会对测试套件的理解和维护产生负面影响。尽管如此,没有可用的自动化工具来支持测试气味的识别和修复。在本文中,我们首先在19名参与者的研究中调查了开发人员对测试气味的感知。结果表明,开发人员通常不会识别(可能有害)测试气味,这突出表明,非常需要用于识别此类气味的自动化工具。但是,要构建有效的工具,需要对测试气味现象有更深入的了解。为此,我们进行了大规模的实证研究,目的是分析(i)源代码中何时出现测试气味;(ii)它们的生存能力是什么;(iii)它们的存在与设计中是否存在设计问题相关联生产代码(代码气味)。结果表明,通常在首次将相应的测试代码提交到存储库中时会引入测试气味,并且它们会在系统中保留很长时间。此外,我们发现测试和代码气味之间存在各种意外的关系。最后,我们展示了如何将这项研究的结果用于构建有效的自动化工具,用于测试气味的检测和重构。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号