Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25527

xUnit reports yield duplicated "Test Result Trend" charts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • xunit-plugin
    • None
    • Ubuntu 12.04, I'm using Jenkins 1.588 and xUnit 1.92. Using xUnit to interface with output from Boost Test.

      When using xUnit to interpret Boost Test XML log files in a Freestyle Project, Jenkins serves up duplicated "Test Result Trend" charts on the project page.

      Interesting behavior of note that made it seem like an xUnit issue to me:

      1. if I turn on the xUnit post-build reporting and perform a build, I get two identical "Test Result Trend" charts pointing to the same link.
      2. If then configure the project by deleting the xUnit post-build action and refresh the browser before rebuilding I only see one "Test Result Trend" chart, even if I navigate away from the project page and then back.
      3. If I then rebuild in the "no reporting" state, then as expected I get no charts.

      The resulting junitResult.xml file in my builds looks like:

      <result plugin="junit@1.2">
      <suites>
      <suite>
      <file>/var/lib/jenkins/jobs/host_common/workspace/generatedJUnitFiles/BoostTest/TEST-682740763.xml</file>
      <name>MergedTestSuite</name>
      <duration>0.0</duration>
      <cases>
      <case>
      <duration>0.0</duration>
      <className>testHostCommon./var/lib/jenkins/jobs/host_common/workspace/erTools/src/test/testPack</className>
      <testName>testPack</testName>
      <skipped>false</skipped>
      <stdout> [Info] - check 1 == 1 passed == [File] - /var/lib/jenkins/jobs/host_common/workspace/erTools/src/test/testPack.cpp == [Line] - 8 </stdout>
      <failedSince>0</failedSince>
      </case>
      </cases>
      </suite>
      </suites>
      <duration>0.0</duration>
      <keepLongStdio>true</keepLongStdio>
      </result>

            gbois Gregory Boissinot
            wtdoor95 Watertight Door
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: