Running tests as early and often, ideally after every commit, is the dream of developers and QA engineers alike. But what if our test suite takes hours or even days to run?
Existing test selection approaches, like the Test Impact Analysis, aim to resolve this by only running a small subset of tests, that still catches the majority of defects in little time. But while coverage-based Test Impact Analysis results in exceptional precision, dynamic coverage data remain very difficult to capture in hardware-in-the-loop or manual tests for embedded software.
In this presentation, I introduce two approaches that can be implemented without coverage in existing projects to uncover most defects with minimal testing effort. One approach uses large language models to map tests into a vector space, where we can select those tests that are the most dissimilar from each other. The resulting smoke test suite covers a broad range of features in our software and can be used for arbitrary changes, to identify defects across the entire codebase. The second approach suggests targeted tests for a recent change, such as the changes of one pull request, using a search algorithm to find fitting tests based on their and the changes’ content. For both of them, I present fundamentals, research results, and practical use cases.