Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

publish Junit report succeeded, but nothing is shown on the left side panel #3875

HealingQuickly ·

Hi Robin

I have this configuration that utilizes "cpputest" module to do unit test on .cpp files, and generate .xml reports.
It seems the generated .xml files don't quite fit QB's requirements. Here is a few lines in one of the .xml files

<testsuite errors="0" failures="0" hostname="localhost" name="xxxTestGroup" tests="69" time="0.002" timestamp="2017-12-05T11:07:47">
<properties></properties>
<testcase classname="xxxTestGroup" name="TestGetVersionInfo" assertions="6" time="0.000" file="src/xxx/test/xxx_test.cpp" line="1594"></testcase>

I understand how to format junit report for QB, and this one seems OK with the suite name, case classname, etc.
But what's happening is:
I have several components being tested, one of them is "xxx" as an example here. And during the build, if I go to the current build overview, the left side panel will have Junit report, and inside there will be a few suite (xxxTestGroup) showing one by one as the build runs. But every suite just disappears after the build finishes. Sometimes there will be just one left.
Capture.PNG

"Example" group is one of the components; it only has some dummy functions (it's not the only component/suite that passes).

QB can find those .xml files just fine (I used "publish artifact" to test it).
Capture2.PNG

I can't figure out what went wrong here Robin, your help will be much appreciated.

Thank you

  • replies 3
  • views 833
  • stars 0
HealingQuickly ·

Update

It seems each time one component finishes testing, the Junit report will replace the previous one on the left side panel. (the last step of the sequential steps is to publish the component's JUnit report).

I will try to send files back to parent or server, then publish them all at once.

But Why would the testsuite be replaced once a new one was published?

Thank you

steveluo2 ADMIN ·

@HealingQuickly please send your original xml report to me (steve at pmease) so I can have some investigation.

HealingQuickly ·

Hi Steve
Thanks for the reply

I don't think there's a formatting issue with the .xml files.
Anyway, I managed to publish all the Junit reports. The trick is to publish all of them with only one step.

Previously I have a set of sequential steps that loop through the components, do the processes and publish their Junit report individually; and the problem is QB will replace the Junit report with the result of the next loop. The reports are not displayed collectively.

Maybe you guys are interested in improving this feature?

Thank you anyway