论文标题

卡托:即时测试案例选择和执行

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

论文作者

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

论文摘要

回归测试可确保正在测试的系统(SUT)在更改后仍能按预期工作。回归测试的最简单方法包括针对SUT的更改版本重新运行整个测试套件。但是,这可能导致时间和资源消耗的过程。 \例如,在处理大型和/或复杂的SUTS和测试西服时。为了解决此问题,可以使用测试案例选择(TCS)策略。此类策略试图建立一个临时测试套件,仅包括与SUT进行更改相关的测试案例,因此避免执行那些不行使更改零件的测试案例。在本文中,我们介绍了Catto(用于测试套件优化的提交自适应工具)和Catto Intellij插件。前者是一种用Java编写的SUTS的TCS策略的工具,而后者是允许开发人员直接在Intellij中使用\ Toolname的包装器。我们还在七个开源Java Suts上进行了初步评估,以减少测试套件大小,断层固定测试用例和故障检测能力的缩小。结果是有希望的,并表明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/}

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源