2001-02-13 12:32:01 +00:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
2005-04-29 18:58:16 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
2002-02-03 22:11:39 +00:00
|
|
|
<title>Test Task</title>
|
2001-02-13 12:32:01 +00:00
|
|
|
</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>
|
2004-11-12 10:36:29 +00:00
|
|
|
<p><strong>This task is deprecated as the Testlet framework has been
|
2003-02-07 09:50:49 +00:00
|
|
|
abandoned in favor of JUnit by the Avalon community.</strong></p>
|
2002-06-22 23:38:38 +00:00
|
|
|
<p><strong>Note:</strong> This task depends on external libraries not included
|
|
|
|
in the Ant distribution. See <a href="../install.html#librarydependencies">
|
|
|
|
Library Dependencies</a> for more information.
|
|
|
|
</p>
|
2001-02-13 12:32:01 +00:00
|
|
|
|
|
|
|
<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>
|
2004-11-19 09:07:12 +00:00
|
|
|
The user can also specify the nested <code><classpath></code> element which defines classpath
|
2001-02-13 12:32:01 +00:00
|
|
|
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"/>
|
2002-03-25 10:39:56 +00:00
|
|
|
<testlet>org.foo.MyTestlet</testlet>
|
|
|
|
<testlet>org.foo.MyOtherTestlet</testlet>
|
|
|
|
</test>
|
2001-02-13 12:32:01 +00:00
|
|
|
</pre>
|
|
|
|
</blockquote>
|
|
|
|
The above will run the testlets org.foo.MyTestlet and org.foo.MyOtherTestlet
|
|
|
|
|
|
|
|
<hr>
|
2005-03-07 18:11:14 +00:00
|
|
|
<p align="center">Copyright © 2001-2005 The Apache Software Foundation. All rights
|
2001-02-13 12:32:01 +00:00
|
|
|
Reserved.</p>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|