Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 78821 invoked from network); 11 Dec 2003 02:58:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Dec 2003 02:58:33 -0000 Received: (qmail 450 invoked by uid 500); 11 Dec 2003 02:58:14 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 395 invoked by uid 500); 11 Dec 2003 02:58:14 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 379 invoked by uid 500); 11 Dec 2003 02:58:13 -0000 Delivered-To: apmail-cocoon-site-cvs@apache.org Received: (qmail 376 invoked from network); 11 Dec 2003 02:58:13 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 11 Dec 2003 02:58:13 -0000 Received: (qmail 78721 invoked by uid 1389); 11 Dec 2003 02:58:31 -0000 Date: 11 Dec 2003 02:58:31 -0000 Message-ID: <20031211025831.78720.qmail@minotaur.apache.org> From: crossley@apache.org To: cocoon-site-cvs@apache.org Subject: cvs commit: cocoon-site/site/2.1/installing tests.html tests.pdf X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 huberapache.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 @@
  • Overview of testing procedures
  • +
  • +JUnit tests + +
  • +
  • +Other tests +
  • - +

    Overview of testing procedures

    @@ -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.)

    +
    + + + +

    JUnit tests

    +
    +

    + Run "build test" 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. +

    + +

    How to add more tests

    +
    +

    + As there is already a nice junit framework available, it is not that + difficult to add junit tests for any transformer. In short: +

      + +
    • Create XYTransformerTestCase.java
    • + +
    • Create XYTransformerTestCase.xconf
    • + +
    • Edit the transformers section in XYTransformerTestCase.xtest + for XYTransformerTestCase
    • + +
    • Add testABC() methods to XYTransformerTestCase.java
    • -
    • - Run "build test" 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 -
    • -
    -

    Other tests ...

    +
    +
    + + + +

    Other tests

    +
      - +
    • + Some Anteater Functional Tests at src/test/anteater + +
    • +
    • + Testing: Catalog Entity Resolver - which conducts some additional tests for resolving external entities. -
    • + which conducts some additional tests for resolving external entities. +
    -
    by David Crossley; 1.0 +
    by Bernhard Huber, Stephan Michels, David Crossley; 1.0
    1.5 +78 -29 cocoon-site/site/2.1/installing/tests.pdf <>