Monday, June 12, 2006

Hyperjaxb3 tests

Hyperjaxb3 is primarily a code generation/augmentation library. This means we not only need to test how individual classes/methods work, we also have to check if code generation works as a whole.

Therefore there are actually two types of tests:

Unit tests


Test behaviour and functionality of individual classes and methods. Unit tests accompany the main code, they are stored in the test directory (normal Maven convetions).

Integrated tests


The overall process of code generation (generation, compilation, roundtrip testing) can only be implemented in separated test projects. Test projects are positioned as sub-modules of the tests module. Each test project has its own pom.xml file with all the definitions needed to build this project. Test projects should also contain the roundtrip test case/suite which is executed during the test phase.

0 Comments:

Post a Comment

<< Home