source: release-kits/lirk3/bin/ant-installer/web/manual1.6.2/manual/OptionalTasks/test.html@ 14982

Last change on this file since 14982 was 14982, checked in by oranfry, 16 years ago

initial import of LiRK3

File size: 2.5 KB
Line 
1<html>
2
3<head>
4<meta http-equiv="Content-Language" content="en-us">
5<title>Test Task</title>
6<link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
7</head>
8
9<body>
10
11<h2><a name="test">Test</a></h2>
12<h3>Description</h3>
13<p>This is a primitive task to execute a unit test in the org.apache.testlet framework.</p>
14<p><strong>This task is deprectated as the Testlet framework has been
15abandoned in favor of JUnit by the Avalon community.</strong></p>
16<p><strong>Note:</strong> This task depends on external libraries not included
17in the Ant distribution. See <a href="../install.html#librarydependencies">
18Library Dependencies</a> for more information.
19</p>
20
21<h3>Parameters</h3>
22<table border="1" cellpadding="2" cellspacing="0">
23 <tr>
24 <td valign="top"><b>Attribute</b></td>
25 <td valign="top"><b>Description</b></td>
26 <td align="center" valign="top"><b>Required</b></td>
27 </tr>
28 <tr>
29 <td valign="top">showSuccess</td>
30 <td valign="top">a boolean value indicating whether tests should display a
31 message on success
32 </td>
33 <td valign="top" align="center">No</td>
34 </tr>
35 <tr>
36 <td valign="top">showBanner</td>
37 <td valign="top">a boolean value indicating whether a banner should be displayed
38 when starting testlet engine
39 </td>
40 <td valign="top" align="center">No</td>
41 </tr>
42 <tr>
43 <td valign="top">forceShowTrace</td>
44 <td valign="top">a boolean indicating that a stack trace is displayed on any failure
45 </td>
46 <td valign="top" align="center">No</td>
47 </tr>
48 <tr>
49 <td valign="top">showTrace</td>
50 <td valign="top">a boolean indicating that a stack trace is displayed on
51 error (but not normal failure)
52 </td>
53 <td valign="top" align="center">No</td>
54 </tr>
55</table>
56<p>
57The user can also specify the nested &lt;classpath&gt; element which defines classpath
58in which the task is executed. The user also specifies a subelement per testlet executed
59which has content that specifies tasklet classname.</p>
60
61<h3>Examples</h3>
62<blockquote>
63<pre>
64&lt;test showSuccess=&quot;false&quot; showBanner=&quot;false&quot; showTrace=&quot;true&quot; forceShowTrace=&quot;true&quot;&gt;
65 &lt;classpath refid=&quot;test.classpath&quot;/&gt;
66 &lt;testlet&gt;org.foo.MyTestlet&lt;/testlet&gt;
67 &lt;testlet&gt;org.foo.MyOtherTestlet&lt;/testlet&gt;
68&lt;/test&gt;
69</pre>
70</blockquote>
71The above will run the testlets org.foo.MyTestlet and org.foo.MyOtherTestlet
72
73<hr>
74<p align="center">Copyright &copy; 2001-2004 The Apache Software Foundation. All rights
75Reserved.</p>
76
77</body>
78</html>
79
Note: See TracBrowser for help on using the repository browser.