cmocka icon indicating copy to clipboard operation
cmocka copied to clipboard

Calling cmocka group tests repeatedly causing invalid XML files.

Open rpadma2 opened this issue 6 years ago • 0 comments

In our testing scripts, some CMOCKA group tests are called repeatedly (sometimes like 100+ times). This is making our Jenkins job fail with some tests having invalid JUNIT (xml) files [root of XML having nested testsuites tag]. Is there a way to workaround this issue? Any information in this area is greatly appreciated. Failed XML file format:

?xml version="1.0" encoding="UTF-8" ?> testsuites> testsuite name="debug test" time="0.000" tests="1" failures="0" errors="0" skipped="0" > testcase name="EVT003: debug" time="0.000" > /testcase> /testsuite> /testsuites> testsuites> testsuite name="debug test" time="0.000" tests="1" failures="0" errors="0" skipped="0" > testcase name="EVT003: debug" time="0.000" > /testcase> /testsuite> /testsuites>

... so on

rpadma2 avatar May 02 '19 18:05 rpadma2