JUnit Summary Post-Processor
The JUnit summary post-processor is able to detect test failures and errors reported in summary form as the tests are executed. JUnit summaries are lines like:
This post-processor will add an error feature for any line that reports a test failure or error. By default this will not cause the build to fail, although this behaviour may be changed with the fail-on-error attribute (see regex.pp).
The JUnit summary post-processor is a subclass of the regular expression post-processor. All attributes and child elements available for regular expression post-processors are also available for JUnit summary post-processors.
Attributes
| Attribute |
Description |
Required? |
Default |
| name |
The name of this post-processor. |
Yes |
|
See also regex.pp.
Child Elements
See regex.pp.
Examples
Apply a JUnit summary post-processor to the output of an ant command:
<junit.summary.pp name="test.pp"/>
<recipe name="default">
<ant name="build" targets="test">
<process processor="${test.pp}"/>
</ant>
</recipe>