mirror of
https://github.com/apache/ant.git
synced 2025-05-18 22:14:47 +00:00
(1) Make sure there is a Copyright notice on all visible files. (2) Make sure all years in which the file has been modified are listed. (3) Make sure the format is consistent, i.e. separate consecutive years with a dash, not a comma. When Stephane changed starteam.html it has been 2001 in France but 2002 in Australia - does that mean we add 2002 to the Copyright line or not? ;-) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270652 13f79535-47bb-0310-9956-ffa450edef68
98 lines
3.7 KiB
HTML
98 lines
3.7 KiB
HTML
<html>
|
|
<head>
|
|
<title>JUnitReport</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2><a name="junitreport">JUnitReport</a></h2>
|
|
Merge the individual XML files generated by the JUnit task and eventually apply
|
|
a stylesheet on the resulting merged document to provide a browsable report of
|
|
the testcases results.
|
|
<h3>Requirements</h3>
|
|
<p>The task will run with either <a href="http://xml.apache.org/xalan-j/">Xalan 2.x</a>
|
|
or <a href="http://xml.apache.org/dist/xalan-j/old/xalan-j_1_2_2.zip">Xalan 1.2.2</a>.</p>
|
|
<p>
|
|
Note:<i>For a framed format Xalan 1.2.2 will need Xerces(xerces.jar) as well as BSF(bsf.jar)
|
|
that can be found in the distribution archive. Xerces will need to be before any other
|
|
parser (such as the shipped crimson). It is *highly* recommended to use Xalan2 instead
|
|
because Xalan1 is no more supported.
|
|
</i></p>
|
|
<h3>Parameters</h3>
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td width="12%" valign="top"><b>Attribute</b></td>
|
|
<td width="78%" valign="top"><b>Description</b></td>
|
|
<td width="10%" valign="top"><b>Required</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">tofile</td>
|
|
<td valign="top">The name of the XML file that will aggregate all individual
|
|
XML testsuite previously generated by the JUnit task.</td>
|
|
<td align="center" valign="top">No. Default to TESTS-TestSuites.xml</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">todir</td>
|
|
<td valign="top">The directory where should be written the file resulting
|
|
from the individual XML testsuite aggregation.</td>
|
|
<td align="center" valign="top">No. Default to current directory</td>
|
|
</tr>
|
|
</table>
|
|
<h3><a name="nested">Nested Elements</a></h3>
|
|
<h4>fileset</h4>
|
|
<p><code>junitreport</code> collects individual xml files generated by the JUnit
|
|
task using the nested <a href="../CoreTypes/fileset.html"><code><FileSet></code></a>
|
|
element.</p>
|
|
<h4>report</h4>
|
|
<p>Generate a browsable report based on the document created by the merge.</p>
|
|
<h3>Parameters</h3>
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td width="12%" valign="top"><b>Attribute</b></td>
|
|
<td width="78%" valign="top"><b>Description</b></td>
|
|
<td width="10%" valign="top"><b>Required</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">format</td>
|
|
<td valign="top">The format of the generated report. Must be "noframes"
|
|
or "frames".</td>
|
|
<td align="center" valign="top">No, default to "frames"</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">styledir</td>
|
|
<td valign="top">The directory where the stylesheets are defined. They must
|
|
be conforming to the following conventions:
|
|
<ul>
|
|
<li>frames format: the stylesheet must be named <i>junit-frames.xsl</i>.</li>
|
|
<li>noframes format: the stylesheet must be named <i>junit-noframes.xsl</i>.</li>
|
|
</ul>
|
|
</td>
|
|
<td align="center" valign="top">No. Default to embedded stylesheets.</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">todir</td>
|
|
<td valign="top">The directory where the files resulting from the
|
|
transformation should be written to.</td>
|
|
<td align="center" valign="top">No. Default to current directory</td>
|
|
</tr>
|
|
</table>
|
|
<h3>Example of report</h3>
|
|
<blockquote>
|
|
<pre><junitreport todir="./reports">
|
|
<fileset dir="./reports">
|
|
<include name="TEST-*.xml"/>
|
|
</fileset>
|
|
<report format="frames" todir="./report/html"/>
|
|
</junitreport>
|
|
</pre>
|
|
</blockquote>
|
|
<p>would generate a <tt>TESTS-TestSuites.xml</tt> file in the directory <tt>reports</tt> and
|
|
generate the default framed report in the directory <tt>report/html</tt>.</p>
|
|
|
|
<hr>
|
|
<p align="center">Copyright © 2001 Apache Software Foundation. All rights
|
|
Reserved.</p>
|
|
</body>
|
|
|
|
</html>
|