论文标题

测试影响分析Java计划集成水平的方法

An approach for Test Impact Analysis on the Integration Level in Java programs

论文作者

Shahbaz, Muzammil

论文摘要

测试影响分析是一种获得受代码更改影响的测试子集的方法。这种方法主要应用于单元测试,在该单元测试中,代码及其相关测试之间的链接很容易获得。但是,在集成级别上,以编程方式找到这样的链接并不直接,尤其是当集成测试将其保存到单独的存储库中时。我们提出了一种基于代码更改的运行时分析来选择集成测试的方法,以减少测试执行开销。我们提供一组可以插入现有CI/CD管道的工具和框架。我们已经在一系列开源Java程序上评估了该方法,并发现$ \ $ \ $ 50 \%\%降低测试,在少数情况下高于80 \%。我们还将方法应用于生产中的大型商业系统,并发现了类似的结果。

Test Impact Analysis is an approach to obtain a subset of tests impacted by code changes. This approach is mainly applied to unit testing where the link between the code and its associated tests is easy to obtain. On the integration level, however, it is not straightforward to find such a link programmatically, especially when the integration tests are held into separate repositories. We propose an approach for selecting integration tests based on the runtime analysis of code changes to reduce the test execution overhead. We provide a set of tools and a framework that can be plugged into existing CI/CD pipelines. We have evaluated the approach on a range of open-source Java programs and found $\approx$50\% reduction in tests on average, and above 80\% in a few cases. We have also applied the approach to a large-scale commercial system in production and found similar results.

扫码加入交流群

加入微信交流群

微信交流群二维码

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