How to run Castor JDO's CTF suite Overview Intended Audience Prerequisites Steps References
Overview
Castor JDO has a JUnit test suite that is used to test various functional
areas, and 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 |
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 test suite against mySQL (where
<castor-root> points to the directory where you installed
the Castor sources:
cd <castor-root>/bin
build clean
build tests
test castor.mysql |
|
To execute just one of the many tests of of the complete test suite,
please change this to:
cd <castor-root>/bin
build clean
build tests
test castor.mysql.TC01 |
|
References
|