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
junittask are aggregated into this file. Defaults toTESTS-TestSuites.xml.
Content
- 0..n nested
<fileset>elements (1.3, 1.4) filesetelements selecting XML reports to merge together into the file specified bytofile. These are the output files from thejunittask.- 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.xslandjunit-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
framesornoframes. Defaults toframes.
-
[54] Xalan 1.2.2 is supported, but Xalan 2.x is recommended.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access