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.4 KiB

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