Browse Source

Updated the documentation to reflect stylesheet changes and thus customization.

Also updated Xalan information with a direct link for Xalan 1.2.2


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269509 13f79535-47bb-0310-9956-ffa450edef68
master
Stephane Bailliez 24 years ago
parent
commit
f33a70b7e5
1 changed files with 7 additions and 34 deletions
  1. +7
    -34
      docs/manual/OptionalTasks/junitreport.html

+ 7
- 34
docs/manual/OptionalTasks/junitreport.html View File

@@ -10,8 +10,11 @@ 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 a stylesheet on the resulting merged document to provide a browsable report of
the testcases results. the testcases results.
<h3>Requirements</h3> <h3>Requirements</h3>
<p>You need&nbsp; <a href="http://xml.apache.org/xalan/">Xalan 1</a> to use this
task or use the Xalan1 compatibility jar of <a href="http://xml.apache.org/xalan-j/">Xalan2</a>.</p>
<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>
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.</i>
<h3>Parameters</h3> <h3>Parameters</h3>
<table border="1" cellpadding="2" cellspacing="0"> <table border="1" cellpadding="2" cellspacing="0">
<tr> <tr>
@@ -56,33 +59,9 @@ element.</p>
<td valign="top">styledir</td> <td valign="top">styledir</td>
<td valign="top">The directory where the stylesheets are defined. They must <td valign="top">The directory where the stylesheets are defined. They must
be conforming to the following conventions: be conforming to the following conventions:
<p>For the noframes format, only the stylesheet overview-summary.xsl is
used.</p>
<p>For the frames format, the result will be javadoc-like. List of package
will be in top left frame, the list of classes in bottom left frame and
the details/summary in the main window.&nbsp; It uses the following XSLs:</p>
<ul> <ul>
<li><tt>all-packages.xsl</tt> - creates an <i>all-packages.html</i> file that
contains the list of all packages (top-left frame) with links to their
corresponding <i>package-summary.html</i> files in their respective
location (package name matches path name)</li>
<li><tt>all-classes.xsl</tt> - creates an <i> all-classes.html</i> file that contains the
whole list of classes in all packages with links to their
corresponding <i>&lt;classname&gt;-details.html</i> in their
respective package directory.</li>
<li><tt>overview-packages.xsl</tt> - creates an <i>overview-packages.html</i>
that makes a summary of all packages and classes not belonging to a
package.</li>
<li><tt>class-details.xsl</tt> - creates a detailed page about the testcases of a
testsuite. This this xsl will be applied on all testsuites and written
to the <i>&lt;classname&gt;-details.html</i> file located in their
respective package directory. </li>
<li><tt>package-summary.xsl</tt> - create a testsuite summary for a package. This
will be written to <i> package-summary.html</i> in its corresponding package
directory. </li>
<li><tt>classes-list.xsl</tt> - creates the list of classes belonging to a
specific package. This will be written to classes-list.html&nbsp; in
its corresponding package directory.</li>
<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> </ul>
</td> </td>
<td align="center" valign="top">No. Default to embedded stylesheets.</td> <td align="center" valign="top">No. Default to embedded stylesheets.</td>
@@ -93,12 +72,6 @@ element.</p>
transformation should be written to.</td> transformation should be written to.</td>
<td align="center" valign="top">No. Default to current directory</td> <td align="center" valign="top">No. Default to current directory</td>
</tr> </tr>
<tr>
<td valign="top">extension</td>
<td valign="top">The extension of the generated files, they must include the
dot (ex: .html)</td>
<td align="center" valign="top">No. Default to .html</td>
</tr>
</table> </table>
<h3>Example of report</h3> <h3>Example of report</h3>
<blockquote> <blockquote>


Loading…
Cancel
Save