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

Surefire report creation fails on processing absent optional JUnit xml attributes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.19
    • Labels:
      None

      Description

      Surefire report creation fails when JUnit XML source for report doesn't contain optional attributes. I use Clojure with junit xml output, it produces xml with <failure> subnode of <testcase>. It has no "message" and "type" attributes specified for it. But has error message as nested text. Plugin processes this xml and fails with NullPointerException SurefireReportGenerator.java:676, as i see in the code, it's not possible for it to have <failure> node without "type" attribute. Maybe it would be better to add null checking at that method?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tibordigana Tibor Digana
                Reporter:
                maksym.symonov Maksym Symonov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: