home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / tests.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.6 KB  |  82 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.0//EN" "document-v10.dtd">
  18.  
  19. <document>
  20.  <header>
  21.   <title>Testing your Apache Cocoon</title>
  22.   <version>1.1</version>
  23.   <type>Technical document</type>
  24.   <authors>
  25.    <person name="Bernhard Huber" email="huber@apache.org"/>
  26.    <person name="Stephan Michels" email="stephan@apache.org"/>
  27.    <person name="David Crossley" email="crossley@apache.org"/>
  28.   </authors>
  29.  </header>
  30.  
  31.  <body>
  32.  <s1 title="Overview of testing procedures">
  33.   <p>
  34.    There are some initial procedures available for you to ensure that
  35.    Apache Cocoon can run properly on your particular computing platform
  36.    and that the components do function properly.
  37.   </p>
  38.   <p>
  39.    You can build upon this infrastructure to add your own tests, and to
  40.    ensure that development work proceeds smoothly. The tests are located
  41.    in the <code>src/test/</code> directory.
  42.   </p>
  43.  </s1>
  44.  
  45.  <s1 title="JUnit tests">
  46.   <p>
  47.    Run "<code>build test</code>" to conduct an initial set of
  48.    automated JUnit test cases,
  49.    e.g. Test various transformers;
  50.    Test the methods for getting platform-dependent filesystem pathnames; etc.
  51.   </p>
  52.  
  53.   <s2 title="How to add more tests">
  54.    <p>
  55.     As there is already a nice junit framework available, it is not that
  56.     difficult to add junit tests for any transformer. In short:
  57.    </p>
  58.    <ul>
  59.     <li>Create XYTransformerTestCase.java</li>
  60.     <li>Create XYTransformerTestCase.xconf</li>
  61.     <li>Edit the transformers section in XYTransformerTestCase.xtest
  62.      for XYTransformerTestCase</li>
  63.     <li>Add testABC() methods to XYTransformerTestCase.java</li>
  64.    </ul>
  65.   </s2>
  66.  </s1>
  67.  
  68.  <s1 title="Other tests">
  69.   <ul>
  70.     <li>
  71.       Some Anteater Functional Tests at <code>src/test/anteater</code>
  72.     </li>
  73.     <li>
  74.       <link href="../catalog-test.html">Testing: Catalog Entity Resolver</link>
  75.       which conducts some additional tests for resolving external entities.
  76.     </li>
  77.   </ul>
  78.  </s1>
  79.  
  80.  </body>
  81. </document>
  82.