arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2206.08718cs.SE
收藏

CATTO:即时测试用例选择和执行

CATTO: Just-in-time Test Case Selection and Execution

Dario Amoroso d'Aragona, Fabiano Pecorelli, Simone Romano, Giuseppe Scanniello, Maria Teresa Baldassarre, Andrea Janes, Valentina Lenarduzzi

摘要:

回归测试确保被测系统(SUT)在更改后仍能按预期工作。最简单的回归测试方法包括针对SUT的更改版本重新运行整个测试套件。但是,这可能会导致耗时且耗费资源的过程;在处理大型和/或复杂的SUT和测试套件时,需要使用\eg。为了解决这个问题,可以使用测试用例选择(TCS)策略。这样的策略寻求构建一个临时的测试套件,该测试套件仅包括那些与对SUT所做的更改相关的测试用例,从而避免执行那些不执行更改部分的测试用例。本文介绍了CATTO(Commit Adaptive Tool for Test suite Optimization)和CATTO INTELLIJ PLUGIN。前者是一个为Java编写的SUT实现TCS策略的工具,而后者是一个包装器,允许开发人员直接在IntelliJ中使用\toolName。我们还对七个开源Java SUT进行了CATTO的初步评估,包括测试套件大小的减少、故障暴露测试用例和故障检测能力。结果是有希望的,并建议CATTO可以帮助开发人员进行回归测试时。该工具的视频演示和文档可从以下网址获得:\url{https://catto-tool.github.io/}

英文摘要:

Regression testing ensures a System Under Test (SUT) still works as expected after changes to it. The simplest approach for regression testing consists of re-running the entire test suite against the changed version of the SUT. However, this might result in a time- and resource-consuming process; \eg when dealing with large and/or complex SUTs and test suits. To work around this problem, test Case Selection (TCS) strategies can be used. Such strategies seek to build a temporary test suite comprising only those test cases that are relevant to the changes made to the SUT, so avoiding executing those test cases that do not exercise the changed parts. In this paper, we introduce CATTO (Commit Adaptive Tool for Test suite Optimization) and CATTO INTELLIJ PLUGIN. The former is a tool implementing a TCS strategy for SUTs written in Java, while the latter is a wrapper to allow developers to use \toolName directly in IntelliJ. We also conducted a preliminary evaluation of CATTO on seven open-source Java SUTs in terms of reductions in test-suite size, fault-reveling test cases, and fault-detection capability. The results are promising and suggest that CATTO can be of help to developers when performing regression testing. The video demo and the documentation of the tool is available at: \url{https://catto-tool.github.io/}

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

↑