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

xunit plugin fails to verify Boost generated xml result file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • None

      We've recently introduced the boost unit test framework random parameter to our unit tests and since then jenkins/xUnit plugin is unable to validate the xml result file (see attached).

      the log in jenkins shows this:

      Jun 13, 2013 2:46:21 PM com.thalesgroup.hudson.plugins.xunit.service.XUnitService warningSystemLogger
      WARNING: [xUnit] - The file '/var/lib/jenkins/jobs/test/workspace/foo/test.xml' is an invalid file.
      Jun 13, 2013 2:46:21 PM com.thalesgroup.hudson.plugins.xunit.service.XUnitService warningSystemLogger
      WARNING: [xUnit] - At line 1 of file:/var/lib/jenkins/jobs/test/workspace/foo/test.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'Message'. One of '{TestSuite}' is expected.
      Jun 13, 2013 2:46:21 PM com.thalesgroup.hudson.plugins.xunit.service.XUnitService errorSystemLogger
      SEVERE: [xUnit] - The result file '/var/lib/jenkins/jobs/test/workspace/foo/test.xml' for the metric 'BoostTest' is not valid. The result file has been skipped.
      

      The problem seems to come from the new tag 'Message' been added to the 'TestLog' result bloc:

      <TestLog>
          <BuildInfo platform="linux" compiler="GNU C++ version 4.4.6 20120305 (Red Hat 4.4.6-4)" stl="GNU libstdc++ version 20120305" boost="1.53.0"/>
          <Message file="./boost/test/impl/framework.ipp" line="432"><![CDATA[Test cases order is shuffled using seed: 1371107205]]></Message>
      ...
      

            gbois Gregory Boissinot
            fduff Fred Duff
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: