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

StatelessXmlReporter#getTestProblems() does not properly reflect report schema structure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4, 3.2.5
    • xml generation
    • None

    Description

      According to https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd and https://maven.apache.org/surefire/maven-failsafe-plugin/xsd/failsafe-test-report.xsd not all nested elements contain stackTrace, system-out and system-err elements, but the code makes it conditional whether there is a stack trace or not. This does not comply with the schema definition. Either the nested element is simple content or complex. In the latter stackTrace is mandatory, even if there is no strack trace according to the schema. The system streams are optional.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              michael-o Michael Osipov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: