blob: 8b561aa54f602cdbed44c3adb9ca642b38c16a66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Test Task</title>
<link rel="stylesheet" type="text/css" href="../stylesheets/antmanual.css">
</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>
<p><strong>This task is deprectated as the Testlet framework has been
abandoned in favor of JUnit by the Avalon community.</strong></p>
<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>
<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-2004 The Apache Software Foundation. All rights
Reserved.</p>
</body>
</html>
|