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

xUnit plugin to do case insensitive xsd validation

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Minor Minor
    • xunit-plugin
    • None

      The current xUnit plugin does not properly handle a situation where if the attributes from the xsd are case insensitive. The timestamp as an example could be timeStamp which would cause the output file to fail to properly format:

      Recording test results
      [xUnit] [INFO] - Starting to record.
      [xUnit] [INFO] - Processing JUnit
      [xUnit] [INFO] - [JUnit] - 1 test report file(s) were found with the pattern 'TEST1.xml' relative to '/private/tmp' for the testing framework 'JUnit'.
      [xUnit] [ERROR] - The result file '/private/tmp/TEST1.xml' for the metric 'JUnit' is not valid. The result file has been skipped.
      [xUnit] [INFO] - Failing BUILD because 'set build failed if errors' option is activated.
      [xUnit] [INFO] - There are errors when processing test results.
      [xUnit] [INFO] - Skipping tests recording.
      [xUnit] [INFO] - Stop build.
      Build step 'Publish xUnit test result report' changed build result to FAILURE
      

      There is room for improvement in that the libdtkit can have a validation where case insensitive searching is available (see ValidationService.java for more information).

            nfalco Nikolas Falco
            schristou Steven Christou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: