Fast Feedback Despite Slow Test Suites? Test-Impact-Analysis for the Robot Framework
2023-03-02 , Gather Town

Test suites grow over time. We see may test suites that take hours or days to execute. This is painfully slow.Test-Impact-Analysis automatically selects those tests that find new bugs quickly. This helps to get rapid feedback even for slow test suites. In the talk, I present both research foundations and practical examples for the Robot Framework.


Successful software grows, and so does its test suite. Increasingly more of our customers have test suites that take several hours of even days to execute in full. However, the longer the time between the introduction of a bug during development, and its discovery through a test failure, the harder it gets to pinpoint the change that introduced this bug. The longer the test execution time, the larger the pain for all involved developers and testers.

If the execution of the entire test suite takes too long, a simple solution is to only execute a subset of the suite that require less time. If this subset is chosen well, its execution can find the majority of the bugs very quickly. The remaining tests can then still be executed every night / week to detect the remaining bugs. This way, we achieve rapid bug discovery times for most new bugs even for large, slow test suites.

However, how well this works in practice depends on how we select the subset of tests that gets executed more frequently. In recent years, we have experimented with many various selection techniques, both in research projects and together with our customers. Two work very well: Test-Impact-Analysis and Pareto-Optimization of test suites.

In this talk, I present both approaches. I share their basic ideas and our research findings. I also present how they can be applied to the Robot Framework and give examples from the Robot Framework and our customers.

Elmar works both as a researcher and a founder. Elmar wrote his PhD thesis on static code analysis and is still active as a researcher in software quality analysis. In 2009, he co-founded CQSE GmbH and since helps teams in using analysis tools more effectively. Elmar frequently talks at research conferences (e.g. ICSE, ICPC) and industry events (e.g. GTD, OOP, JAX). He was elected best speaker at some of them. Elmar was named Junior Fellow of the German Chapter of the ACM in 2015.