Sysprogs forums › Forums › VisualGDB › Publish Test Results from TinyEmbeddedTest
- This topic has 8 replies, 3 voices, and was last updated 7 years, 1 month ago by
danluck.
-
AuthorPosts
-
June 26, 2018 at 15:38 #21200
dabramson
ParticipantHello,
How can you publish test results output by running tinyembeddedtest tests from the command line? I’ve tried each of the formats available (JUnit, NUnit, xUnit, and VSTest) in the standard tfs build task (Publish Test Results), but none of them do the job.
Thanks,
Dave
June 26, 2018 at 23:35 #21202support
KeymasterHi,
You can use the /runtests switch of VisualGDB.exe (see this tutorial) to generate an XML file with test results, however we don’t support automatically exporting them to TFS yet. As a temporary workaround, please try converting the output into one of the existing formats (e.g. NUnit) and then using a standard TFS plugin for importing the converted file.
June 27, 2018 at 12:57 #21212dabramson
ParticipantHello,
Yes, I’m using /runtests in a command line build step to execute the tests, and I have the XML output. I don’t expect that they would be automatically exported to TFS. But I think the output format should be compatible with one of the formats that the “Publish Test Results” build step understands. https://docs.microsoft.com/en-us/vsts/pipelines/tasks/test/publish-test-results?view=vsts. Better still, a command line parameter to select the test result output schema (the current proprietary one or JUnit for example).
Are there plans to support the standard unit test result formats?
If there are plans do you have a rough timeline?
That would help me decide if I want to put the time into a custom test results converter, as you suggest above.
Thanks,
Dave
June 29, 2018 at 04:17 #21224support
KeymasterHi,
Sorry for the delay. Based on a quick look, we should be able to support one of the TFS-supported formats relatively easily. We should be able to get you a time estimate in the next week. Would that work for you?
July 2, 2018 at 14:56 #21241dabramson
ParticipantHello,
Yes, that would would work quite well!
Thanks for the responsiveness.
Dave
July 6, 2018 at 13:15 #21286dabramson
ParticipantAny word on this feature?
July 7, 2018 at 01:45 #21296support
KeymasterHi,
Yes, we have added a new command-line option to VisualGDB to export test results in the VSTest format to this build. Please use the following command line:
VisualGDB.exe /runtests <settings file> /vsoutput:<file.trx>
Then publish it using the regular “Publish Test Results” task (ensure you select the VSTest format). Let us know if you have any feedback/suggestions.
July 10, 2018 at 12:14 #21326dabramson
ParticipantHello,
Thanks for the build, and great work! I’m now reporting test result from my embedded STM32 project.
Thanks,
Dave
September 27, 2018 at 12:31 #22107danluck
ParticipantVery thanks for this feature in release, we use it too in process of Continuous Integration with TFS, test reports correctly understanding by TFS server.
-
AuthorPosts
- You must be logged in to reply to this topic.