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 03:58:31 UTC

cvs commit: cocoon-site/site/2.1/installing tests.html tests.pdf

crossley    2003/12/10 18:58:31

  Modified:    site/2.1/installing tests.html tests.pdf
  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.9       +56 -13    cocoon-site/site/2.1/installing/tests.html
  
  Index: tests.html
  ===================================================================
  RCS file: /home/cvs/cocoon-site/site/2.1/installing/tests.html,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- tests.html	13 Nov 2003 15:48:41 -0000	1.8
  +++ tests.html	11 Dec 2003 02:58:31 -0000	1.9
  @@ -199,9 +199,20 @@
   <li>
   <a href="#Overview+of+testing+procedures">Overview of testing procedures</a>
   </li>
  +<li>
  +<a href="#JUnit+tests">JUnit tests</a>
  +<ul class="minitoc">
  +<li>
  +<a href="#How+to+add+more+tests">How to add more tests</a>
  +</li>
  +</ul>
  +</li>
  +<li>
  +<a href="#Other+tests">Other tests</a>
  +</li>
   </ul>
    
  -<a name="N10019"></a><a name="Overview+of+testing+procedures"></a>
  +<a name="N10021"></a><a name="Overview+of+testing+procedures"></a>
   <h3>Overview of testing procedures</h3>
   <div style="margin-left: 0 ; border: 2px">
   <p>
  @@ -209,30 +220,62 @@
      Apache Cocoon can run properly on your particular computing platform.
      (You can build upon this infrastructure to add your own tests.)
     </p>
  +</div>
  +
  + 
  +<a name="N1002A"></a><a name="JUnit+tests"></a>
  +<h3>JUnit tests</h3>
  +<div style="margin-left: 0 ; border: 2px">
  +<p>
  +   Run "<span class="codefrag">build test</span>" 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>
  +<a name="N10035"></a><a name="How+to+add+more+tests"></a>
  +<h4>How to add more tests</h4>
  +<div style="margin-left: 0 ; border: 2px">
  +<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>
      
  -<li>
  -    Run "<span class="codefrag">build test</span>" 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>
  -<p>Other tests ...</p>
  +</div>
  +</div>
  +
  + 
  +<a name="N1004E"></a><a name="Other+tests"></a>
  +<h3>Other tests</h3>
  +<div style="margin-left: 0 ; border: 2px">
   <ul>
  -   
  +    
   <li>
  +      Some Anteater Functional Tests at <span class="codefrag">src/test/anteater</span>
  +    
  +</li>
       
  +<li>
  +      
   <a href="../catalog-test.html">Testing: Catalog Entity Resolver</a>
  -    which conducts some additional tests for resolving external entities.
  -   </li>
  +      which conducts some additional tests for resolving external entities.
  +    </li>
     
   </ul>
   </div>
   
    
  -<div class="attribution">by&nbsp;David Crossley; <span class="version">1.0</span>
  +<div class="attribution">by&nbsp;Bernhard Huber,&nbsp;Stephan Michels,&nbsp;David Crossley; <span class="version">1.0</span>
   </div>
   </div>
   </td><td width="10"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td>
  
  
  
  1.5       +78 -29    cocoon-site/site/2.1/installing/tests.pdf
  
  	<<Binary file>>