Unit-tests for stylesheets and pipelines.
Unit and regression testing is a best practice of software engineering. If you don't know about unit testing and test-driven development, please have a look at these excellent websites:
There are several tools available that will help you to do unit and regression testing, integration testing and acceptance testing on your Cocoon applications. For example, you can and should use
JUnit for Java components.
HttpUnit for testing your application 'from the outside'.
Anteater for automating functional tests.
However, until now there was no framework for testing stylesheets and Cocoon pipelines, which are at the core of many Cocoon applications. For my work on several projects using Cocoon I needed such a framework, and decided that it shouldn't be too hard to build one. The result is CoUnit (names like CUnit and CCUnit were already taken), which offers a simple framework for unit tests, complementary to other tools (like JUnit and HttpUnit).
You may be interestedin my presentation at the Cocoon GetTogether 2004, which I have attached to this page. Also look at the GT2004Nico notes.
You are invited to play around with the code and improve it. If you are interested to join the CoUnit project as a member, send me an email (nverwer at be-value-nl, or if you add to this page I will get notified).
- My colleagues at Be Value, for working with earlier versions of the test framework.
- Luca Morandi, for writing the code for the green/red bar.
- Jan Willem Boer, for doing most of the coding for version 2.0.