-
Bug
-
Resolution: Won't Do
-
Major
-
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
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] |
Resolution | New: Won't Do [ 10001 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Comment | [ Spam comment ] |
Comment | [ Spam comment ] |
As reported in the plugin documentation JUnit supported schema are Ant junit and Maven Surefire
Schemas reports 3 digit for duration