首页> 外文期刊>Empirical Software Engineering >The secret life of test smells - an empirical study on test smell evolution and maintenance
【24h】

The secret life of test smells - an empirical study on test smell evolution and maintenance

机译:试验气味的秘密寿命 - 测试气味演化与维护的实证研究

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

摘要

In recent years, researchers and practitioners have been studying the impact of test smells on test maintenance. However, there is still limited empirical evidence on why developers remove test smells in software maintenance and the mechanism employed for addressing test smells. In this paper, we conduct an empirical study on 12 real-world open-source systems to study the evolution and maintenance of test smells, and how test smells are related to software quality. Our results show that: 1) Although the number of test smell instances increases, test smell density decreases as systems evolve. 2) However, our qualitative analysis on those removed test smells reveals that most test smell removal (83%) is a by-product of feature maintenance activities. 45% of the removed test smells relocate to other test cases due to refactoring, while developers deliberately address the only 17% of the test smell instances, consisting of largely Exception Catch/Throw and Sleepy Test. 3) Our statistical model shows that test smell metrics can provide additional explanatory power on post-release defects over traditional baseline metrics (an average of 8.25% increase in AUC). However, most types of test smells have a minimal effect on post-release defects. Our study provides insight into how developers resolve test smells and current test maintenance practices. Future studies on test smells may consider focusing on the specific types of test smells that may have a higher correlation with defect-proneness when helping developers with test code maintenance.
机译:近年来,研究人员和从业者一直在研究测试气味对测试维护的影响。但是,仍然有限有限的经验证据是为什么开发人员在软件维护中删除测试气味和用于寻址测试气味的机制。在本文中,我们对12个现实世界开源系统进行了实证研究,以研究测试气味的演化和维护,以及测试气味如何与软件质量有关。我们的研究结果表明:1)虽然测试气味实例的数量增加,但由于系统的发展,测试气味密度降低。 2)然而,我们对那些去除的测试气味的定性分析表明,大多数测试气味去除(83%)是特征维护活动的副产品。由于重构,45%的删除测试闻闻闻闻寄存到其他测试用例,而开发人员故意解决测试闻室实例的唯一17%,包括捕获/投掷和困倦测试。 3)我们的统计模型表明,测试气味度量可以为传统基线度量的释放后缺陷提供额外的解释性力(平均8.25%的AUC增加)。然而,大多数类型的测试气味对释放后缺陷产生了最小的影响。我们的研究介绍了开发人员如何解决测试气味和当前测试维护实践的洞察。关于测试气味的未来研究可能会考虑关注特定类型的测试气味,当帮助有测试代码维护的开发人员时,可以具有与缺陷的相关性更高的相关性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号