arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.14640cs.SE
收藏

测试错误检测工具:系统映射研究

Test Smell Detection Tools: A Systematic Mapping Study

Wajdi Aljedaani, Anthony Peruma, Ahmed Aljohani, Mazen Alotaibi, Mohamed Wiem Mkaouer, Ali Ouni, Christian D. Newman, Abdullatif Ghallab, Stephanie Ludi

摘要:

测试气味被定义为开发人员在实现测试用例时做出的次优设计选择。因此,类似于代码气味,研究社区已经产生了许多测试气味检测工具,以调查测试气味对测试套件的质量和维护的影响。然而,很少有人知道的特点,类型的气味,目标语言,以及这些出版的工具的可用性。在本文中,我们提供了所有已知的,同行评审的,测试气味检测工具的详细目录。我们首先对同行评审的科学出版物进行全面搜索,以构建一个包含22种工具的目录。然后,我们进行比较分析,以确定每个工具检测到的气味类型和其他显着特征,包括程序设计语言,测试框架支持,检测策略和采用,等等。从我们的发现中,我们发现了在Java、Scala、Smalltalk和C++测试套件中检测测试气味的工具,大多数工具都支持Java。这些工具可以作为命令行和IDE插件等。我们的分析还表明,大多数工具在检测特定的气味类型时会重叠,例如通用设备。此外,我们遇到了这些工具用来检测气味的四种类型的技术。我们设想我们的研究是研究人员和从业人员确定适合他们需求的工具的一站式来源。我们的研究结果还为社区提供了指导未来工具开发的信息。

英文摘要:

Test smells are defined as sub-optimal design choices developers make when implementing test cases. Hence, similar to code smells, the research community has produced numerous test smell detection tools to investigate the impact of test smells on the quality and maintenance of test suites. However, little is known about the characteristics, type of smells, target language, and availability of these published tools. In this paper, we provide a detailed catalog of all known, peer-reviewed, test smell detection tools. We start with performing a comprehensive search of peer-reviewed scientific publications to construct a catalog of 22 tools. Then, we perform a comparative analysis to identify the smell types detected by each tool and other salient features that include programming language, testing framework support, detection strategy, and adoption, among others. From our findings, we discover tools that detect test smells in Java, Scala, Smalltalk, and C++ test suites, with Java support favored by most tools. These tools are available as command-line and IDE plugins, among others. Our analysis also shows that most tools overlap in detecting specific smell types, such as General Fixture. Further, we encounter four types of techniques these tools utilize to detect smells. We envision our study as a one-stop source for researchers and practitioners in determining the tool appropriate for their needs. Our findings also empower the community with information to guide future tool development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑