mirror of
https://github.com/apache/ant.git
synced 2025-05-19 06:24: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
73 lines
2.1 KiB
HTML
73 lines
2.1 KiB
HTML
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
<title>Apache Ant User Manual</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2><a name="test">Test</a></h2>
|
|
<h3>Description</h3>
|
|
<p>This is a primitive task to execute a unit test in the org.apache.testlet framework.</p>
|
|
|
|
<h3>Parameters</h3>
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td valign="top"><b>Attribute</b></td>
|
|
<td valign="top"><b>Description</b></td>
|
|
<td align="center" valign="top"><b>Required</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">showSuccess</td>
|
|
<td valign="top">a boolean value indicating whether tests should display a
|
|
message on success
|
|
</td>
|
|
<td valign="top" align="center">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">showBanner</td>
|
|
<td valign="top">a boolean value indicating whether a banner should be displayed
|
|
when starting testlet engine
|
|
</td>
|
|
<td valign="top" align="center">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">forceShowTrace</td>
|
|
<td valign="top">a boolean indicating that a stack trace is displayed on any failure
|
|
</td>
|
|
<td valign="top" align="center">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">showTrace</td>
|
|
<td valign="top">a boolean indicating that a stack trace is displayed on
|
|
error (but not normal failure)
|
|
</td>
|
|
<td valign="top" align="center">No</td>
|
|
</tr>
|
|
</table>
|
|
<p>
|
|
The user can also specify the nested <classpath> element which defines classpath
|
|
in which the task is executed. The user also specifies a subelement per testlet executed
|
|
which has content that specifies tasklet classname.</p>
|
|
|
|
<h3>Examples</h3>
|
|
<blockquote>
|
|
<pre>
|
|
<test showSuccess="false" showBanner="false" showTrace="true" forceShowTrace="true">
|
|
<classpath refid="test.classpath"/>
|
|
<testlet>org.foo.MyTestlet<testlet/>
|
|
<testlet>org.foo.MyOtherTestlet<testlet/>
|
|
<test/>
|
|
</pre>
|
|
</blockquote>
|
|
The above will run the testlets org.foo.MyTestlet and org.foo.MyOtherTestlet
|
|
|
|
<hr>
|
|
<p align="center">Copyright © 2001 Apache Software Foundation. All rights
|
|
Reserved.</p>
|
|
|
|
</body>
|
|
</html>
|
|
|