Twister: A Test Utility for Contributors
summary
Twister is a Python test runner that scans the Zephyr code base for YAML-marked TestCases and samples, builds binaries, flashes devices and captures serial output; it supports hardware map driven parallel device runs, quarantine mode to skip flaky combos, and an integration flag to limit platforms for fast feedback. Reports land in twister-out as JSON/XML, and Twister itself is exercised under scripts/test/twister via pytest. Useful options include parallel jobs, no-clean incremental builds, and an only-failed retry to speed validation.
AI-written summary · about
chapters (18)
- 0:00Start
- 0:40Summary
- 3:13How to Run Twister
- 4:06Problem Statement
- 5:20Adding Tests/Samples to Zephyr
- 6:11Testcase YAML Structure
- 7:37Harness Configuration
- 8:34Fixtures
- 9:31Integration Mode
- 10:37Quarantine
- 11:42HW testing in Zephyr
- 14:49Running Tests on Multiple HW Devices (Contd.)
- 15:21Running Twister on Platforms out of Zephyr tree
- 16:11Twister Reporting
- 17:18Performance Tuning
- 19:05Difference between Samples & Tests
- 20:40Testing Twister Tool
- 21:51Resources
related talks
49mHarnessing the Twister: Zephyr Data-Driven Testing and Insights
49mHarnessing the Twister: Zephyr Data-Driven Testing and Insights
43mPytest Tests in Twister
43mPytest Tests in Twister
20mIntroduction To Twister and Adding Support for Hardware Runners
44mTest Strategy for Zephyr
44mTest Strategy for Zephyr
46mZephyr Application Development Using TDD: Getting Started
