Name

junitreport

Synopsis

Creates a formatted report based on several XML files from the junit task. This task applies an XSLT stylesheet. Apache’s Xalan XSLT Processor (http://xml.apache.org) is required.[54]

Attributes

todir (1.3, 1.4, File, N)

The destination directory for the XML file.

tofile (1.3, 1.4, String, N)

The destination XML filename. Individual XML files from the junit task are aggregated into this file. Defaults to TESTS-TestSuites.xml.

Content

0..n nested <fileset> elements (1.3, 1.4)

fileset elements selecting XML reports to merge together into the file specified by tofile. These are the output files from the junit task.

0..n nested <report> elements (1.3, 1.4)

Each specifies how an XSLT transformation is performed in order to generate a formatted report. The following attributes are supported:

todir (1.3, 1.4, File, N)

The destination directory for transformation results. Defaults to the current directory.

styledir (1.3, 1.4, File, N)

The directory containing junit-frames.xsl and junit-noframes.xsl. If unspecified, the task loads the files from the Ant optional tasks JAR file.

format (1.3, 1.4, Enum, N)

Selects which of the stylesheets to use. Legal values are frames or noframes. Defaults to frames.

[54] Xalan 1.2.2 is supported, but Xalan 2.x is recommended.

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.