In embedded software development, getting fast feedback after code changes is often a wish, but rarely reality. While the test pyramid teaches us to establish various testing levels, from unit tests, through software-in-the-loop (SIL) tests, to hardware-in-the-loop (HIL) tests, the 'Shift-Left' approach causes SIL and HIL suites to grow massively. Complete runs soon take days, congesting CI/CD pipelines, frustrating developers, and delaying "Continuous Testing". How can we resolve this bottleneck without sacrificing coverage?
Test Impact Analysis (TIA) offers a proven solution. Instead of executing the entire test suite on every commit, TIA uses dynamic code coverage data to identify exactly which lines of code changed and runs only the subset of tests that exercise those lines.
In this talk, I will show how TIA reduces test execution times by up to 90% while maintaining high defect detection. I will demonstrate practical implementations in two scenarios: accelerating SIL test suites for the Zephyr RTOS using the Renode emulator, and breaking the bottleneck of expensive HIL tests in closed-source systems. Crucially, I will show that generating the required testwise coverage is surprisingly straightforward when utilizing modern simulation frameworks (for SIL) and hardware tracers (for HIL). Finally, alongside technical aspects like CI/CD integration, I will discuss the practical hurdles of introducing TIA into everyday projects.