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

xUnit 2.x XSD does not validate NUnit 2.x XML report file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • None
    • xunit 2.0.1
      jenkins 2.107.3

      After upgrade to 2.0.1 xunit cannot parse nunit 2.x test results. xunit 1.0.4 works fine

      INFO: [NUnit-2.x (default)] - 1 test report file(s) were found with the pattern 'test.xml' relative to '/home/build/workspace/devops-pipeline-script-tmp' for the testing framework 'NUnit-2.x (default)'.
      WARNING: The file '/home/build/workspace/devops-pipeline-script-tmp/test.xml' is an invalid file.
      WARNING: At line 292 of file:/home/build/workspace/devops-pipeline-script-tmp/test.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'test-suite'. One of '{test-case}' is expected.
      WARNING: At line 1092 of file:/home/build/workspace/devops-pipeline-script-tmp/test.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'test-suite'. One of '{test-case}' is expected.
      WARNING: At line 1478 of file:/home/build/workspace/devops-pipeline-script-tmp/test.xml:cvc-complex-type.2.4.d: Invalid content was found starting with element 'test-suite'. No child element is expected at this point.
      WARNING: At line 2252 of file:/home/build/workspace/devops-pipeline-script-tmp/test.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'test-case'. One of '{test-suite}' is expected.
      WARNING: At line 2545 of file:/home/build/workspace/devops-pipeline-script-tmp/test.xml:cvc-complex-type.2.4.a: Invalid content was found starting with element 'test-case'. One of '{test-suite}' is expected.
      ERROR: There is at least one problem. Check the Jenkins system log for more information. (if you don't have configured yet the system log before, you have to rebuild).
      INFO: Setting the build status to FAILURE
      

            nfalco Nikolas Falco
            tomaxsas Tomas Zaleniakas
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: