|
|
@@ -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 |
|
|
|
the testcases results. |
|
|
|
<h3>Requirements</h3> |
|
|
|
<p>You need <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> |
|
|
|
<table border="1" cellpadding="2" cellspacing="0"> |
|
|
|
<tr> |
|
|
@@ -56,33 +59,9 @@ element.</p> |
|
|
|
<td valign="top">styledir</td> |
|
|
|
<td valign="top">The directory where the stylesheets are defined. They must |
|
|
|
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. It uses the following XSLs:</p> |
|
|
|
<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><classname>-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><classname>-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 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> |
|
|
|
</td> |
|
|
|
<td align="center" valign="top">No. Default to embedded stylesheets.</td> |
|
|
@@ -93,12 +72,6 @@ element.</p> |
|
|
|
transformation should be written to.</td> |
|
|
|
<td align="center" valign="top">No. Default to current directory</td> |
|
|
|
</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> |
|
|
|
<h3>Example of report</h3> |
|
|
|
<blockquote> |
|
|
|