No Board, No Problem: Testing Zephyr Applications with native_sim
Waiting for hardware is one of the most common bottlenecks in embedded development. Prototypes are scarce, flashing takes time and bugs that only show up on the target are hard to reproduce. At the Zephyr Developer Summit, part of the Open Source Summit Europe 2026 in Prague, our Software Team Lead Marco Widmer showed how much of a Zephyr application can be developed, tested and debugged without touching a board at all. The recording of the talk is now available.
What the talk covers
Zephyr makes it easy to build the same code for multiple board targets. One of these targets is native_sim, which runs a Zephyr application, or parts of it, together with its tests as a regular Linux process. The result: reproducible test runs, the full range of Linux debugging tools and a seamless fit into your CI pipeline.
Based on lessons learned from several real-world projects, Marco walks through:
- The execution model: how native_sim handles time and what that means for your tests
- Emulating hardware: fake drivers, virtual Bluetooth controllers, networking, PTY UART and emulators
- Real-world examples: connecting to the Android Emulator over BLE and writing Zephyr tests with the Cucumber framework
- Tooling: twister, sanitizers, GDB and code coverage, plus running external binaries through twister's pytest harness
- Design for testability: separating business logic from hardware-dependent software units
- Knowing the limits: when native_sim is not enough and tests should move to QEMU or real hardware
Why it matters for your product
The earlier a bug is found, the cheaper it is to fix. Testing on the host means development and test automation can start long before the first prototype arrives, every change can be checked automatically in CI, and the hardware that is available can be reserved for the tests that really need it. For product teams, that means more confidence in each release and a shorter path to market.
Dive deeper
Want to try one of the concepts from the talk yourself? Our blog post Cucumber Tests with Zephyr walks through the complete setup step by step, from emulating the hardware to integrating Cucumber into Zephyr's test runner. The demo application is available on GitHub.
Conclusion
At bytesatwork, we believe: the earlier you can test, the better your product.
With native_sim, testing starts long before the first board is on your desk.
