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

xunit plugin fails to parse report from Catch2

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • xunit-plugin
    • None
    • Jenkins 2.277.2, xunit-plugin 3.0.1

      The xUnit plugin fails to parse JUnit reports created by Catch2. The time (duration) values have the wrong format. The error message is:

      WARNING: The file '<path>\TestResults-Scintilla.xml' is an invalid file.
      WARNING: At line 3 of [file:/|file:///]<path>/TestResults-Scintilla.xml:cvc-pattern-valid: Wert '0.022408' ist nicht Facet-gültig in Bezug auf Muster '(([0-9]{0,3},)*[0-9]{3}|[0-9]{0,3})*(\.[0-9]{0,3})?' für Typ 'SUREFIRE_TIME'.
      WARNING: At line 3 of [file:/|file:///]<path>/TestResults-Scintilla.xml:cvc-attribute.3: Wert '0.022408' des Attributs 'time' bei Element 'testsuite' hat keinen gültigen Typ 'SUREFIRE_TIME'.
      ERROR: Step ‘Publish xUnit test result report’ failed: The result file '<path>\TestResults-Scintilla.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
      

      It seems that it expects time values only with 3 decimal digits, but the generated file contains 6.

      See the bug report for Catch2: https://github.com/catchorg/Catch2/issues/2221

          [JENKINS-65438] xunit plugin fails to parse report from Catch2

          Joachim Mairböck created issue -
          Joachim Mairböck made changes -
          Description Original: The xUnit plugin fails to parse JUnit reports created by Catch2. The time (duration) values have the wrong format. The error message is: 

          {{{{WARNING: The file '<path>\TestResults-Scintilla.xml' is an invalid file.
          WARNING: At line 3 of file:/<path>/TestResults-Scintilla.xml:cvc-pattern-valid: Wert '0.022408' ist nicht Facet-gültig in Bezug auf Muster '(([0-9]\{0,3},)*[0-9]\{3}|[0-9]\{0,3})*(\.[0-9]\{0,3})?' für Typ 'SUREFIRE_TIME'.
          WARNING: At line 3 of file:/<path>/TestResults-Scintilla.xml:cvc-attribute.3: Wert '0.022408' des Attributs 'time' bei Element 'testsuite' hat keinen gültigen Typ 'SUREFIRE_TIME'.
          ERROR: Step ‘Publish xUnit test result report’ failed: The result file '<path>\TestResults-Scintilla.xml' for the metric 'JUnit' is not valid. The result file has been skipped.}}}}

          It seems that it expects time values only with 3 decimal digits, but the generated file contains 6.

          See the bug report for Catch2: https://github.com/catchorg/Catch2/issues/2221
          New: The xUnit plugin fails to parse JUnit reports created by Catch2. The time (duration) values have the wrong format. The error message is:

          {noformat}
          WARNING: The file '<path>\TestResults-Scintilla.xml' is an invalid file.
          WARNING: At line 3 of [file:/|file:///]<path>/TestResults-Scintilla.xml:cvc-pattern-valid: Wert '0.022408' ist nicht Facet-gültig in Bezug auf Muster '(([0-9]{0,3},)*[0-9]{3}|[0-9]{0,3})*(\.[0-9]{0,3})?' für Typ 'SUREFIRE_TIME'.
          WARNING: At line 3 of [file:/|file:///]<path>/TestResults-Scintilla.xml:cvc-attribute.3: Wert '0.022408' des Attributs 'time' bei Element 'testsuite' hat keinen gültigen Typ 'SUREFIRE_TIME'.
          ERROR: Step ‘Publish xUnit test result report’ failed: The result file '<path>\TestResults-Scintilla.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
          {noformat}

          It seems that it expects time values only with 3 decimal digits, but the generated file contains 6.

          See the bug report for Catch2: [https://github.com/catchorg/Catch2/issues/2221]
          Nikolas Falco made changes -
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Mark Waite made changes -
          Comment [ Spam comment ]
          Mark Waite made changes -
          Comment [ Spam comment ]

            nfalco Nikolas Falco
            jmairboeck Joachim Mairböck
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: