On the test smells detection: an empirical study on the JNose Test accuracy

Tássio Virgínio, L. Martins, Railana Santana, Adriana Cruz, Larissa Rocha, Heitor A. X. Costa, Ivan Machado
{"title":"On the test smells detection: an empirical study on the JNose Test accuracy","authors":"Tássio Virgínio, L. Martins, Railana Santana, Adriana Cruz, Larissa Rocha, Heitor A. X. Costa, Ivan Machado","doi":"10.5753/JSERD.2021.1893","DOIUrl":null,"url":null,"abstract":"Several strategies have supported test quality measurement and analysis. For example, code coverage, a widely used one, enables verification of the test case to cover as many source code branches as possible. Another set of affordable strategies to evaluate the test code quality exists, such as test smells analysis. Test smells are poor design choices in test code implementation, and their occurrence might reduce the test suite quality. A practical and largescale test smells identification depends on automated tool support. Otherwise, test smells analysis could become a cost-ineffective strategy. In an earlier study, we proposed the JNose Test, automated tool support to detect test smells and analyze test suite quality from the test smells perspective. This study extends the previous one in two directions: i) we implemented the JNose-Core, an API encompassing the test smells detection rules. Through an extensible architecture, the tool is now capable of accomodating new detection rules or programming languages; and ii) we performed an empirical study to evaluate the JNose Test effectiveness and compare it against the state-of-the-art tool, the tsDetect. Results showed that the JNose-Core precision score ranges from 91% to 100%, and the recall score from 89% to 100%. It also presented a slight improvement in the test smells detection rules compared to the tsDetect for the test smells detection at the class level.","PeriodicalId":189472,"journal":{"name":"J. Softw. Eng. Res. Dev.","volume":"52 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Softw. Eng. Res. Dev.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5753/JSERD.2021.1893","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6

Abstract

Several strategies have supported test quality measurement and analysis. For example, code coverage, a widely used one, enables verification of the test case to cover as many source code branches as possible. Another set of affordable strategies to evaluate the test code quality exists, such as test smells analysis. Test smells are poor design choices in test code implementation, and their occurrence might reduce the test suite quality. A practical and largescale test smells identification depends on automated tool support. Otherwise, test smells analysis could become a cost-ineffective strategy. In an earlier study, we proposed the JNose Test, automated tool support to detect test smells and analyze test suite quality from the test smells perspective. This study extends the previous one in two directions: i) we implemented the JNose-Core, an API encompassing the test smells detection rules. Through an extensible architecture, the tool is now capable of accomodating new detection rules or programming languages; and ii) we performed an empirical study to evaluate the JNose Test effectiveness and compare it against the state-of-the-art tool, the tsDetect. Results showed that the JNose-Core precision score ranges from 91% to 100%, and the recall score from 89% to 100%. It also presented a slight improvement in the test smells detection rules compared to the tsDetect for the test smells detection at the class level.
关于测试气味检测:JNose测试准确性的实证研究
有几种策略支持测试质量度量和分析。例如,广泛使用的代码覆盖,使测试用例的验证能够覆盖尽可能多的源代码分支。存在另一组可负担的策略来评估测试代码质量,例如测试气味分析。测试气味是测试代码实现中糟糕的设计选择,它们的出现可能会降低测试套件的质量。一个实际的和大规模的测试气味识别依赖于自动化工具的支持。否则,测试气味分析可能成为一种成本低的策略。在早期的研究中,我们提出了JNose Test,这是一种自动化的工具,支持检测测试气味,并从测试气味的角度分析测试套件的质量。本研究在两个方向上扩展了之前的研究:i)我们实现了JNose-Core,这是一个包含测试气味检测规则的API。通过可扩展的体系结构,该工具现在能够适应新的检测规则或编程语言;ii)我们执行了一项实证研究来评估JNose测试的有效性,并将其与最先进的工具tsDetect进行比较。结果表明,JNose-Core的准确率在91% ~ 100%之间,召回率在89% ~ 100%之间。在类级别的测试气味检测方面,与tsDetect相比,它还略微改进了测试气味检测规则。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信