论文标题
一项关于测试从业者对测试气味的认识的调查
A survey on test practitioners' awareness of test smells
论文作者
论文摘要
开发测试代码可能是一项耗时的任务,通常需要大量的努力和成本,尤其是在手动完成时。此外,在此过程中,开发人员和测试人员可能会采用不良的设计选择,这可能导致在测试代码中引入所谓的测试气味。测试气味是实施或设计测试代码的不良解决方案。随着带有测试气味的测试代码的大小增加,这些测试可能会变得更加复杂,因此,很难正确理解和进化。因此,测试气味可能会对测试代码的质量和维护产生负面影响,也可能损害整个软件测试活动。在这种情况下,这项研究旨在了解测试专业人员是否无意地插入测试气味。我们进行了一项专家调查,以分析一组测试气味的使用频率。来自不同公司的60名专业人员参加了调查。我们从文献中选择了14种经过广泛研究的气味,这些气味也在现有的测试气味检测工具中实现。产量的结果表明,经验丰富的专业人员在日常编程任务中引入了测试气味,即使他们使用公司的标准实践,而不仅仅是为了个人假设。另一个相关的证据是,开发人员的专业经验不能被视为在测试代码中插入测试气味的根本原因。
Developing test code may be a time-consuming task that usually requires much effort and cost, especially when it is done manually. Besides, during this process, developers and testers are likely to adopt bad design choices, which may lead to the introduction of the so-called test smells in test code. Test smells are bad solutions to either implement or design test code. As the test code with test smells increases in size, these tests might become more complex, and as a consequence, much harder to understand and evolve correctly. Therefore, test smells may have a negative impact on the quality and maintenance of test code and may also harm the whole software testing activities. In this context, this study aims to understand whether test professionals non-intentionally insert test smells. We carried out an expert survey to analyze the usage frequency of a set of test smells. Sixty professionals from different companies participated in the survey. We selected 14 widely studied smells from the literature, which are also implemented in existing test smell detection tools. The yielded results indicate that experienced professionals introduce test smells during their daily programming tasks, even when they are using standardized practices from their companies, and not only for their personal assumptions. Another relevant evidence was that developers' professional experience can not be considered as a root-cause for the insertion of test smells in test code.