WHITE PAPER

Unit Testing Embedded Systems with Zephyr/Ztest

WRITTEN BY PARKER LLOYD, FIRMWARE DEVELOPER AT MISTYWEST

Firmware development for embedded systems presents numerous challenges, particularly in ensuring the reliability and robustness in real-world conditions. Late-stage bug detection is expensive, time-consuming to resolve, and can lead to product failures in the field. This white paper demonstrates how Zephyr’s Ztest framework can effectively address these challenges by enabling efficient unit testing. It also covers common difficulties developers face, such as breaking down complex, monolithic codebases, handling intricate kernel dependencies, and ensuring isolated, reliable tests through structured fixtures.

By employing the techniques outlined here, developers can identify and fix defects early in the process, minimizing the risk of costly issues later on.

Get the White Paper

Please enable JavaScript in your browser to complete this form.
Name
Privacy Consent

Zephyr’s Ztest framework is designed to address the unique challenges of unit testing embedded systems.


In this white paper, we look at:
  • The Pros and Cons of Ztest
  • When Unit Testing May Not Be the Best Option
  • Faking the Kernel
  • Test Fixtures
  • Execution
  • Generating and Reviewing Coverage Reports

 

 
Please wait...
Scroll to Top