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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • Environment:
      xunit 2.0.1
      jenkins 2.107.3
    • Similar Issues:

      Description

      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
      

        Attachments

          Activity

          Hide
          nfalco Nikolas Falco added a comment -

          could you attach the report?
          Now the report are validated against xsd shipped with NUnit distribution.

          Show
          nfalco Nikolas Falco added a comment - could you attach the report? Now the report are validated against xsd shipped with NUnit distribution.
          Hide
          ickersep ickersep added a comment -

          I'm seeing the same problem. Attached is my TestResults.xml file.

          Show
          ickersep ickersep added a comment - I'm seeing the same problem. Attached is my TestResults.xml file.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Nikolas Falco
          Path:
          src/main/resources/org/jenkinsci/plugins/xunit/types/nunit-2.x.xsd
          src/test/java/org/jenkinsci/plugins/xunit/types/NUnitTest.java
          src/test/resources/org/jenkinsci/plugins/xunit/types/nunit/testcase14/input.xml
          src/test/resources/org/jenkinsci/plugins/xunit/types/nunit/testcase14/result.xml
          http://jenkins-ci.org/commit/xunit-plugin/354a5981c1cada514926d62a2712a750311931a8
          Log:
          JENKINS-51767 xUnit 2.x XSD does not validate NUnit 2.x XML report file

          Fix original NUnit 2.x XSD file to validate the report file when there are test-suite and test-case alternate elements as children of a test-suite element.

          *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

          Functionality will be removed from GitHub.com on January 31st, 2019.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nikolas Falco Path: src/main/resources/org/jenkinsci/plugins/xunit/types/nunit-2.x.xsd src/test/java/org/jenkinsci/plugins/xunit/types/NUnitTest.java src/test/resources/org/jenkinsci/plugins/xunit/types/nunit/testcase14/input.xml src/test/resources/org/jenkinsci/plugins/xunit/types/nunit/testcase14/result.xml http://jenkins-ci.org/commit/xunit-plugin/354a5981c1cada514926d62a2712a750311931a8 Log: JENKINS-51767 xUnit 2.x XSD does not validate NUnit 2.x XML report file Fix original NUnit 2.x XSD file to validate the report file when there are test-suite and test-case alternate elements as children of a test-suite element. * NOTE: * This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: