On the Relation of Test Smells to Software Code Quality

D. Spadini, Fabio Palomba, A. Zaidman, M. Bruntink, Alberto Bacchelli
{"title":"On the Relation of Test Smells to Software Code Quality","authors":"D. Spadini, Fabio Palomba, A. Zaidman, M. Bruntink, Alberto Bacchelli","doi":"10.1109/ICSME.2018.00010","DOIUrl":null,"url":null,"abstract":"Test smells are sub-optimal design choices in the implementation of test code. As reported by recent studies, their presence might not only negatively affect the comprehension of test suites but can also lead to test cases being less effective in finding bugs in production code. Although significant steps toward understanding test smells, there is still a notable absence of studies assessing their association with software quality. In this paper, we investigate the relationship between the presence of test smells and the change-and defect-proneness of test code, as well as the defect-proneness of the tested production code. To this aim, we collect data on 221 releases of ten software systems and we analyze more than a million test cases to investigate the association of six test smells and their co-occurrence with software quality. Key results of our study include:(i) tests with smells are more change-and defect-prone, (ii) \"Indirect Testing\", \"Eager Test\", and \"Assertion Roulette\" are the most significant smells for change-proneness and, (iii) production code is more defect-prone when tested by smelly tests.","PeriodicalId":6572,"journal":{"name":"2018 IEEE International Conference on Software Maintenance and Evolution (ICSME)","volume":"8 1","pages":"1-12"},"PeriodicalIF":0.0000,"publicationDate":"2018-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"120","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 IEEE International Conference on Software Maintenance and Evolution (ICSME)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICSME.2018.00010","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 120

Abstract

Test smells are sub-optimal design choices in the implementation of test code. As reported by recent studies, their presence might not only negatively affect the comprehension of test suites but can also lead to test cases being less effective in finding bugs in production code. Although significant steps toward understanding test smells, there is still a notable absence of studies assessing their association with software quality. In this paper, we investigate the relationship between the presence of test smells and the change-and defect-proneness of test code, as well as the defect-proneness of the tested production code. To this aim, we collect data on 221 releases of ten software systems and we analyze more than a million test cases to investigate the association of six test smells and their co-occurrence with software quality. Key results of our study include:(i) tests with smells are more change-and defect-prone, (ii) "Indirect Testing", "Eager Test", and "Assertion Roulette" are the most significant smells for change-proneness and, (iii) production code is more defect-prone when tested by smelly tests.
测试气味与软件代码质量的关系研究
测试气味是测试代码实现中的次优设计选择。正如最近的研究所报告的那样,它们的存在不仅会对测试套件的理解产生负面影响,而且还会导致测试用例在发现产品代码中的错误时效率降低。尽管在理解测试气味方面迈出了重要的一步,但是仍然缺乏评估它们与软件质量之间关系的研究。在本文中,我们研究了测试气味的存在与测试代码的变更和缺陷倾向性之间的关系,以及测试产品代码的缺陷倾向性。为了达到这个目的,我们收集了10个软件系统的221个版本的数据,我们分析了超过一百万个测试用例,以调查六种测试气味的关联以及它们与软件质量的共同出现。我们研究的主要结果包括:(i)气味测试更容易发生变化和缺陷;(ii)“间接测试”、“急切测试”和“断言轮盘赌”是变更倾向最显著的气味,并且(iii)产品代码在使用有气味的测试进行测试时更容易出现缺陷。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信