How to run Castor XML's CTF suite Overview Intended Audience Prerequisites Steps References
Overview
Castor XML has a JUnit test suite that is used to perform various functional
and regression tests, to give developers/committers some reassurance when
changing the codebase.
Intended Audience
Anyone who wants to run the CTF test suite. This document outlines the basic
steps to get people unfamiliar with this area started.
Our example describes the use of command-line tools for a UNIX system.
Prerequisites
Anybody wishing to run the CTF test suite should have access to the
source code of Castor. This can be obtained in one of the following
ways:
|
- | Download the sources distribution from the
download page |
- | download the latest snapshot from SVN from (see links on the bottom
left corner): here |
- | Check out the latest code from SVN into your prefered developement
environment. For instructions on this task, take a look
here |
Note:The CTF currently requires the Sun JDK (or SDK) to execute,
although it may be possible to execute fine with GNU gcj or with JRockit. The
CTF will not work if you are using only a JRE. This is because the CTF uses
the Sun Java compiler API to compile code as needed for Source Generator and
Marshaling Framework tests. The CTF code is written to allow easy extension
for additional compiler frameworks, so if you use a compiler or runtime that
is not supported, you should be able to easily add support for a new framework.
If you want to do this, contact Castor committors for assistance and direction
and they'll set you on the right course.
Steps
Once you have obtained the Castor sources in one of the ways highlighted above,
here is how to proceed. In general, more information about how to
execute the CTF test suite can be found here.
From a command line (e.g a shell), please execute the following
commands to run the Castor XML master test suite (default suite).
> cd <castor-root>
> mvn install
> cd <castor-root>/xmlctf
> mvn test |
|
To execute just a subset of the master test suite, please change this to:
> cd <castor-root>
> mvn install
> cd <castor-root>/xmlctf
> mvn test |
|
References
|