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

TEST-*.xml files generated by Surefire are invalid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.19.1
    • Fix Version/s: 2.20
    • Component/s: Maven Surefire Plugin
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: