Hi,
We’re running our C++ UnitTests with Google Test. Now we want to import the test results as XML into our Continua CI. Google Tests generates mostly JUnit compatible XML-output, so we can use the “Import JUnit Tests” action and it works. But we couldn’t figure out to what value (if any) the “assembly” column is mapped to. Is there anyway to set the assembly name when importing UnitTest results from a xml file? It would make filtering tests a lot easier.
gtest outputs xml like the following:
<?xml version="1.0" encoding="UTF-8"?> <testsuites\> <testsuite name="TestFixtureName" tests="4" failures="0" errors="0" skipped="0" time="0.001" timestamp="2019-04-09T19:23:58"> <testcase classname="TestFixtureName" name="ValueExists" time="0.001" /> <testcase classname="TestFixtureName" name="SetValue" time="0" /> <testcase classname="TestFixtureName" name="GetValue" time="0" /> <testcase classname="TestFixtureName" name="assignment" time="0" /> </testsuite> <testsuite name="TestFixtureName2" tests="2" failures="0" errors="0" skipped="0" time="0.001" timestamp="2019-04-09T19:25:00"> <testcase classname="Namespace.TestFixtureName2" name="ChangeValue" time="0.001" /> <testcase classname="Namespace.TestFixtureName2" name="DeleteValue" time="0" /> </testsuite> </testsuites>
And look in Continua like this (after “Import JUnit Tests”):
Any help would be greatly appreciated
Julian