You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cr...@apache.org on 2003/12/11 02:58:03 UTC
cvs commit: cocoon-2.1/src/documentation/xdocs/installing tests.xml
crossley 2003/12/10 17:58:03
Modified: src/documentation/xdocs/installing tests.xml
Log:
Enhanced to better explain the tests. Showed how to add more JUnit tests.
Submitted by: Bernhard Huber huber<AT>apache.org
Revision Changes Path
1.4 +32 -13 cocoon-2.1/src/documentation/xdocs/installing/tests.xml
Index: tests.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/documentation/xdocs/installing/tests.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- tests.xml 12 Oct 2003 13:31:55 -0000 1.3
+++ tests.xml 11 Dec 2003 01:58:03 -0000 1.4
@@ -7,6 +7,8 @@
<version>1.0</version>
<type>Technical document</type>
<authors>
+ <person name="Bernhard Huber" email="huber@apache.org"/>
+ <person name="Stephan Michels" email="stephan@apache.org"/>
<person name="David Crossley" email="crossley@apache.org"/>
</authors>
</header>
@@ -18,23 +20,40 @@
Apache Cocoon can run properly on your particular computing platform.
(You can build upon this infrastructure to add your own tests.)
</p>
+ </s1>
- <ul>
- <li>
- Run "<code>build test</code>" to conduct an initial set of
- automated JUnit test cases,
- e.g. test the methods for getting platform-dependent filesystem pathnames;
- e.g. ensure that Catalog Entity Resolver works properly
- </li>
- </ul>
+ <s1 title="JUnit tests">
+ <p>
+ Run "<code>build test</code>" to conduct an initial set of
+ automated JUnit test cases,
+ e.g. Test various transformers;
+ Test the methods for getting platform-dependent filesystem pathnames; etc.
+ </p>
- <p>Other tests ...</p>
+ <s2 title="How to add more tests">
+ <p>
+ As there is already a nice junit framework available, it is not that
+ difficult to add junit tests for any transformer. In short:
+ </p>
+ <ul>
+ <li>Create XYTransformerTestCase.java</li>
+ <li>Create XYTransformerTestCase.xconf</li>
+ <li>Edit the transformers section in XYTransformerTestCase.xtest
+ for XYTransformerTestCase</li>
+ <li>Add testABC() methods to XYTransformerTestCase.java</li>
+ </ul>
+ </s2>
+ </s1>
+ <s1 title="Other tests">
<ul>
- <li>
- <link href="../catalog-test.html">Testing: Catalog Entity Resolver</link>
- which conducts some additional tests for resolving external entities.
- </li>
+ <li>
+ Some Anteater Functional Tests at <code>src/test/anteater</code>
+ </li>
+ <li>
+ <link href="../catalog-test.html">Testing: Catalog Entity Resolver</link>
+ which conducts some additional tests for resolving external entities.
+ </li>
</ul>
</s1>