I use the following option sonar.cfamily.cppunit.reportsPath=some/path with sonnar-scanner
In some/path I have the XML file in CPPUnit format:
<?xml version="1.0" encoding="UTF-8"?>
<testsuite tests="6" skipped="0" errors="0" failures="0" id="0" name="utils_lib_tests" time="0.000533">
<testcase assertions="1" name="uint24_t" time="8.6e-05">
</testcase>
<testcase assertions="1" name="host_to_network_uint16_t" time="7.8e-05">
</testcase>
<testcase assertions="1" name="host_to_network_uint32_t" time="7.6e-05">
</testcase>
<testcase assertions="1" name="host_to_network_uint64_t" time="7.6e-05">
</testcase>
<testcase assertions="1" name="to_value" time="7.7e-05">
</testcase>
<testcase assertions="1" name="to_value_throw" time="0.000117">
</testcase>
</testsuite>
but sonnar-scanner logs an error:
ERROR: Error during SonarScanner execution
com.sonar.cpp.plugin.visualstudio.XmlParserHelper$ParseErrorException: Missing root element <TestRun> in .....
What is expected format of XML here?
Thanks in advance