Posted: 6 Mar 2018 9:21 EST Last activity: 6 Mar 2018 9:38 EST
Interpreting test results from OpenSpan.ConstoleTestRunner.exe in Jenkins
I have a suite of unit tests that I am able to run in Jenkins using the OpenSpan.ConsoleTestRunner.exe that is installed along side the OpenSpan Plug-in for Visual Studio 2015. Once the tests have run, I have the test runner creating a results.xml file. I would like to use this results.xml file to report the test results back to Jenkins. If this were a normal c# project that was tested with something like NUnit, this would be done with the NUnit plugin for Jenkins, which allows Jenkins to interpret the test results from an NUnit run.
Here is my question
Has anybody been able to successfully get Jenkins to read the test results? How?
If not, does the results.xml file follow any kind of test result file standard such as the ones set by JUnit, MSTest, NUnit2, NUnit3?
(This would allow me to use an existing Jenkins plugin to interpret the results)
If it does not follow any of the current test result standards, is there a tool that could convert the pega unit test results to something like JUnit?
If none of these questions can be answered, would Pega be willing to write a Jenkins plugin for interpreting the test results, or at least a tool or feature in the console runner that gives the results in the JUnit schema?
For reference, here a sample results.xml from a test project I made, since it's been difficult for me to find any information about the results.xml file on Pega Developer Network.
By asking this question and doing the research to ask it, I have answered my own question. The results.xml file match with on of the two NUnit test result standards (looks like NUnit2). Either way, the NUnit plugin for Jenkins can be used to interpret the results.xml file. I'll attach a screen shot to this answer in case anyone wants to do something similar.