You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test.html 2.5 KiB

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