Replies: 2 comments 2 replies
-
Zephyr has a test framework https://docs.zephyrproject.org/latest/develop/test/ztest.html but for lint test, that's something you have to figure out on Azure. Zephyr project is using GitHub Actions. |
Beta Was this translation helpful? Give feedback.
-
For linting, it isn't straight forward. You could add a job where you install and run clang-format using the format file created by nordic https://github.com/nrfconnect/sdk-nrf/blob/main/.clang-format. You could then use a converter like: https://github.com/melexis/warnings-plugin to generate an artifact (usually json) that's usable by Azure DevOps. Then publish that artifact as code quality. I haven't used Azure DevOps personnaly, but on other platforms that's how I would implement it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Zephyr Community,
I have been working with Zephyr for the past 4 months and I am already learning a lot. Recently, I came up with setting up a CI pipeline that sets up Zephyr workspace, Installs dependencies, Zephyr SDK, Build's the application and then publish the hex / bin file to the artifacts.
I am using Azure DevOps and I pretty much succeeded in setting up the Job. However, my question to the community is:
How do I perform tests on the code? For instance, the test cases that I write, lint test and any other test that is required to run on the Zephyr project.
I am quite new to testing side of the Zephyr project and I really wanted to gain skills here. I was going through the repository and was tying to figure out how these are done.
It would be great if the community could point out to any reference link or examples.
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions