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
|
---|
15 | abandoned in favor of JUnit by the Avalon community.</strong></p>
|
---|
16 | <p><strong>Note:</strong> This task depends on external libraries not included
|
---|
17 | in the Ant distribution. See <a href="../install.html#librarydependencies">
|
---|
18 | Library 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>
|
---|
57 | The user can also specify the nested <classpath> element which defines classpath
|
---|
58 | in which the task is executed. The user also specifies a subelement per testlet executed
|
---|
59 | which has content that specifies tasklet classname.</p>
|
---|
60 |
|
---|
61 | <h3>Examples</h3>
|
---|
62 | <blockquote>
|
---|
63 | <pre>
|
---|
64 | <test showSuccess="false" showBanner="false" showTrace="true" forceShowTrace="true">
|
---|
65 | <classpath refid="test.classpath"/>
|
---|
66 | <testlet>org.foo.MyTestlet</testlet>
|
---|
67 | <testlet>org.foo.MyOtherTestlet</testlet>
|
---|
68 | </test>
|
---|
69 | </pre>
|
---|
70 | </blockquote>
|
---|
71 | The above will run the testlets org.foo.MyTestlet and org.foo.MyOtherTestlet
|
---|
72 |
|
---|
73 | <hr>
|
---|
74 | <p align="center">Copyright © 2001-2004 The Apache Software Foundation. All rights
|
---|
75 | Reserved.</p>
|
---|
76 |
|
---|
77 | </body>
|
---|
78 | </html>
|
---|
79 |
|
---|