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

RTj:一个用于检测和重构腐烂绿色测试用例的Java框架

RTj: a Java framework for detecting and refactoring rotten green test cases

Matias Martinez, Anne Etien, Stéphane Ducasse, Christopher Fuhrman

摘要:

烂绿测试是指至少有一个断言没有执行的测试。这给了开发者一种虚假的信心。在本文中,我们提出,RTJ,一个框架,分析测试用例从Java项目的目标是检测和重构腐烂的测试用例。RTj从GitHub上托管的26个开源Java项目中自动发现了427个烂测试。使用RTj,开发人员可以自动推荐需要修改的测试,以提高测试中应用程序的质量。

英文摘要:

Rotten green tests are passing tests which have, at least, one assertion not executed. They give developers a false confidence. In this paper, we present, RTj, a framework that analyzes test cases from Java projects with the goal of detecting and refactoring rotten test cases. RTj automatically discovered 427 rotten tests from 26 open-source Java projects hosted on GitHub. Using RTj, developers have an automated recommendation of the tests that need to be modified for improving the quality of the applications under test.

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

↑