-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide JUnit output for PIO Unit Testing #2891
Comments
Do you mean pio test -v? |
Not really. That would only add more details, if I understand this option correctly. |
Maybe |
Where is the specification for this format in XML? |
@ivankravets I do not know the The XML format I am using is this here: https://github.com/nunit/docs/wiki/Test-Result-XML-Format. But there would be other options possible as my goal is to use this task in a Azure DevOps build pipeline: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test-results?view=azure-devops&tabs=yaml to publish my test results and make them available to be seen on the build report. The result then looks like this: I have shared the Python script I have build here: https://github.com/tschissler/sharing/tree/master/Scripts I'm now working on an article describing how to integrate Platformio with Azure DevOps CI/CD. Maybe you want to consider adding this option to your documentation of CI/CD systems. |
I renamed this issue to "Provide JSON output for PIO Unit Testing". So we will implement it soon. |
Hi! @tschissler could you share your yml pipeline? |
Please vote for this feature here #2891 (comment) 👍 |
I'll share my solution later. Working on a Hackton against the virus this weekend. |
@jpsfs This is my YAML file for the build. I use a docker container where the build runs in.
|
I would like to have the test results integrated into gitlab-ci. Is there already a solution to export test results without manually parsing the output? |
If the output could follow some common format this would be easier to integrate into different solutions. GitLab supports JUnit files so my vote goes for this format. |
Hi all, The new 2 formats are implemented: JSON and JUnit. Please upgrade PlatformIO Core via Does it work for you? |
I was able to create a set of Unit Tests with PlatformIO and run them as native within a docker container. I also managed to run those tests as port of my build pipeline on Azure DevOps. All looks pretty good.
Thank you so much for building this amazing tool!!!
Only thing which nags me is that failing unit tests make my build fail with no additional information available before I dig into the log files.
It would be amazing, if I could extract the build results into a test result file in a JUnit format or something alike which I then could use to provide my build system with additional information.
I'm wondering if something like this is build in right now or if I have to build something on my own.
Useful links
The text was updated successfully, but these errors were encountered: