cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernhard Huber" <berni_hu...@a1.net>
Subject JUnit Tests for Cocoon, A Suggestion
Date Sat, 15 Dec 2001 18:25:45 GMT
Hi,
As I was developing a generator I was trying to write a JUnit TestCase 
for this Generator.
I came to the conclusion that without a working cocoon.xconf, and a 
sitemap for the testcases, testing the generator is useless.
Moreover for writing tests for other cocoon components some testing 
framework might be useful anyway.

Thus some questions and suggestions:

* create a dir /test,

* write testcases in 
/test/src/java<package-name>/<classname>TestCase.java, e.g.: 
/test/org/apache/cocoon/components/generation/test/SearchGeneratorTestCase.java
* junit xml-reports are written to /test/reports

* test case configuration is put into /test/conf, eg for 
SearchGeneratorTest the configuration files are located in 
/test/conf/org/apache/cocoon/components/generation/SearchGenerator.xconf, 
and
/test/conf/org/apache/cocoon/components/generation/SearchGenerator.xmap.

* Each JUnit test is setUp with its corresponding xconf/xmap configuration.

Are there any other ideas?

bye bernhard



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message