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

用语法模式解释测试方法名称的演变

Using Grammar Patterns to Interpret Test Method Name Evolution

Anthony Peruma, Emily Hu, Jiajun Chen, Eman Abdullah Alomar, Mohamed Wiem Mkaouer, Christian D. Newman

摘要:

好的做法是命名测试方法,使开发人员能够理解它们;它们必须以这样一种方式编写,即它们的目的和功能对于维护它们的人来说是清楚的。不幸的是,很少有自动化的支持来编写或维护测试方法的名称。这可能导致不一致和低质量的测试名称,并增加支持这些方法的维护成本。由于这种风险,帮助开发人员长期维护他们的测试方法名称是至关重要的。在本文中,我们使用语法模式,以及它们如何与测试方法行为相关联,来理解测试命名实践。该数据将用于支持维护测试名称的自动化工具。

英文摘要:

It is good practice to name test methods such that they are comprehensible to developers; they must be written in such a way that their purpose and functionality are clear to those who will maintain them. Unfortunately, there is little automated support for writing or maintaining the names of test methods. This can lead to inconsistent and low-quality test names and increase the maintenance cost of supporting these methods. Due to this risk, it is essential to help developers in maintaining their test method names over time. In this paper, we use grammar patterns, and how they relate to test method behavior, to understand test naming practices. This data will be used to support an automated tool for maintaining test names.

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

↑