Augmenting unit test suites from integration tests
Katerina Paltoglou, Vassilis E. Zafeiris

TL;DR
This paper introduces a method that uses static and dynamic analysis to automatically generate unit tests from integration tests, improving test suite granularity and fault localization.
Contribution
It presents a novel approach for augmenting test suites by deriving unit tests from integration tests, especially useful when test pyramids are unbalanced.
Findings
Effective in generating unit tests from integration tests
Applicable to Node.js and potentially other platforms
Empirically validated on twelve open source projects
Abstract
We propose a method that employs static and dynamic analysis for augmenting a test suite with automatically generated unit tests. The method is most suitable for test suites where the stratification of unit, integration and system tests does not conform to the recommended test pyramid structure: numerous unit tests providing high code coverage and forming the base, fewer integration tests in the middle that verify component collaboration, and far fewer system or UI tests at the top that exercise acceptance or other scenarios of use. Instead, integration and system tests represent the majority of test cases, resulting in coarse-grained tests with limited fault localization and longer execution times. The method leverages integration tests, exercising a component and its dependencies, to generate unit tests that verify component dependencies in isolation. We showcase and empirically…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
