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

xUnit not testing against the appropriate XSD?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • xunit-plugin
    • None
    • Jenkins 1.590
      xUnit 1.93

      When xUnit is executed on a PHPUnit generated xml file, the following error is logged to Jenkins' logs.

      Attribute 'name' must appear on element 'testsuite'.

      However, upon inspecting the code @

      https://github.com/jenkinsci/xunit-plugin/blob/xunit-1.93/src/main/java/org/jenkinsci/plugins/xunit/service/XUnitTransformer.java
      https://github.com/jenkinsci/xunit-plugin/blob/xunit-1.93/src/main/java/org/jenkinsci/plugins/xunit/service/XUnitValidationService.java

      and

      https://github.com/jenkinsci/xunit-plugin/tree/master/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd

      testsuite.name should not be a required property in any of the junit-(8|9|10).xsd files which makes me think it is using another source as validation.

            nfalco Nikolas Falco
            tomzx Tom R
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: