Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1216

TEST-*.xml files generated by Surefire are invalid

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.19.1
    • 2.20
    • Maven Surefire Plugin
    • None

    Description

      See SUREFIRE-964 as well. The XML produced is invalid because schemaLocation must include two URIs, as outlined in xmlschema-1.

      Because of this, the Xerces parser fails in the Jenkins XUnit plugin and e.g. IntelliJ is not able to parse the file correctly.

      Suggested solution is to replace xsi:schemaLocation by xsi:noNamespaceSchemaLocation, which fixes this for the Unit plugin as well the file is parseable by IntelliJ.

      Attachments

        Issue Links

          Activity

            People

              mfriedenhagen Mirko Friedenhagen
              mfriedenhagen Mirko Friedenhagen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: