-
Hello, I’m currently working on setting up unit tests for my Zephyr-based application, both with and without Twister. I'm targeting the native_sim board. I was able to successfully run the tests without Twister using:
This works as expected. However, I’m struggling to run the same tests with Twister. My project follows the Zephyr workspace application structure: The testcase.yaml looks like this: When I try to run Twister: I get the following error: What am I missing in my configuration or folder structure that prevents Twister from detecting the test suite? Is there something specific I need to adjust in the YAML, paths, or directory layout when using a workspace-style Zephyr application? Any help would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I got it. The issue was that I forgot to prefix the test names in ZTEST with "test_", which is required for the twister to recognize and execute them. |
Beta Was this translation helpful? Give feedback.
I got it.
The issue was that I forgot to prefix the test names in ZTEST with "test_", which is required for the twister to recognize and execute them.