Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.2
-
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.