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

Boost-Test parsing

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
    • Environment:
      linux kernel 3.2.1
      boost 1.46
      jenkins 1.454
      xunit plugin 1.40
    • Similar Issues:

      Description

      Hello,

      I am trying to connect ourg UnitTest system with Jenkins using xunit plugin.
      The boost xml file is generated by using the following command-line parameters:
      --log_level=all --output_format=XML --report_level=no

      Giving the output to jenkins gives:
      ... .xml' for the metric 'BoostTest' is not valid. The result file has been skipped.

      Is there any possibility to validate against the Boost-Test xsd manually? To investigate the problem. I searched for a XSD file but could not find any file nor reference.

      I also tried to find some uUnit output using the Logger mechanism. The description on the plugin website does not work
      and also did not look as it could work because the build-in help tells a different syntax. So I tried several Logger like (setting priority to 'all'):
      com.thalesgroup.hudson.plugins.xunit.service.XUnitService
      com.thalesgroup.hudson.plugins.xunit.service.XUnitTransformer
      com.thalesgroup.hudson.plugins.xunit.service.XUnitValidationService
      com.thalesgroup.hudson.plugins.xunit.service.XUnitReportProcessorService
      com.thalesgroup.hudson.plugins.xunit.service.XUnitLog
      xUnit

      But the xUnit Logger stayed empty.

      So sadly I could not provide any debug information, despite the log file.

      Regards,
      Matthias Scholz

        Attachments

          Activity

          Hide
          matthiasscholz Matthias Scholz added a comment - - edited

          Got the logger working now. Using just: "XUnitService" as logger entry.

          It looks like the "BuildInfo" section is invalid.
          Error:
          "WARNUNG: [xUnit] - At line 1 of file:/.../Test_xunit/workspace/ARTSystemNG_test_log.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'BuildInfo'. One of '

          {TestSuite}

          ' is expected."

          Test file extraction:
          <?xml version="1.0" encoding="UTF-8"?>
          <TestLog>
          <BuildInfo platform="linux" compiler="GNU C++ version 4.5.3" stl="GNU libstdc++ version 20110428" boost="1.46.1"/>
          <TestSuite ...>
          ...
          </TestSuite>
          </TestLog>

          Show
          matthiasscholz Matthias Scholz added a comment - - edited Got the logger working now. Using just: "XUnitService" as logger entry. It looks like the "BuildInfo" section is invalid. Error: "WARNUNG: [xUnit] - At line 1 of file:/.../Test_xunit/workspace/ARTSystemNG_test_log.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'BuildInfo'. One of ' {TestSuite} ' is expected." Test file extraction: <?xml version="1.0" encoding="UTF-8"?> <TestLog> <BuildInfo platform="linux" compiler="GNU C++ version 4.5.3" stl="GNU libstdc++ version 20110428" boost="1.46.1"/> <TestSuite ...> ... </TestSuite> </TestLog>
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          pom.xml
          http://jenkins-ci.org/commit/xunit-plugin/b46c4b4ed0097a97e42cf4b06b2a601bba0f173d
          Log:
          Fix JENKINS-13036

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: pom.xml http://jenkins-ci.org/commit/xunit-plugin/b46c4b4ed0097a97e42cf4b06b2a601bba0f173d Log: Fix JENKINS-13036

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              matthiasscholz Matthias Scholz
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: