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

Support AntUnit XML output

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.2
    • 2.4.3
    • None
    • Maven 2.0.8 on Linux, but probably other versions and platforms
    • Patch

    Description

      Because AntUnit (http://ant.apache.org/antlibs/antunit/) doesn't include a "time" attribute on its JUnit-like <testsuite> element, maven-surefire-report-plugin throws a NullPointerException when parsing its XML output. The attached patch continues to use the attribute if it's present, but will set the elapsed time for a test suite from AntUnit's nested <time> element if it exists.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            peterj Peter Janes
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment