计算机科学 > 软件工程
[提交于 2020年5月11日]
标题:A Pattern-based Approach to Detect and Improve Non-descriptive Test Names
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Unit tests are an important artifact that supports the software development process in several ways. For example, when a test fails, its name can provide the first step towards understanding the purpose of the test. Unfortunately, unit tests often lack descriptive names. In this paper, we propose a new, pattern-based approach that can help developers improve the quality of test names of JUnit tests by making them more descriptive. It does this by detecting non-descriptive test names and in some cases, providing additional information about how the name can be improved. Our approach was assessed using an empirical evaluation on 34352 JUnit tests. The results of the evaluation show that the approach is feasible, accurate, and useful at discriminating descriptive and non-descriptive names with a 95% true-positive rate.
提交历史
来自:Jianwei Wu[v1] 2020年5月11日 星期一 18:08:35 UTC