Skip to content

Testing Zephyr Projects with Twister

The extension supports running Twister tests. Click the beaker icon in the IDE for Zephyr sidebar to access the test panel.

IDE for Zephyr Twister Testing

  1. Click the beaker icon in the sidebar
  2. Click Add Twister Test and select the test suite to add
  3. Configure the test parameters (platform, selected tests, optional serial settings, and extra args)
  4. Click Run Test or use Zephyr IDE: Run Test from the command palette

Tests are stored in .vscode/zephyr-ide.json alongside project and build configurations. Each test entry specifies:

  • Platformnative_sim, qemu, or hardware
  • Tests — one or more test IDs (or All)
  • Extra args — additional Twister arguments
  • Serial settings — optional serialPort and serialBaud for hardware targets

Multiple test configurations can be added per project. Use Zephyr IDE: Set Active Test to switch the active test, and Zephyr IDE: Reconfigure Active Test to adjust parameters.

Use Zephyr IDE: Delete Test Output Directories to clean up Twister output between runs.