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

11/14/2022
by   Muzammil Shahbaz, et al.
0

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 ≈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.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset