Chapter 2. Using the FitNesse Archetype

Table of Contents

2.1. Prerequisites
2.2. Running the Archetype
2.2.1. Running the archetype from the command line
2.2.2. Running the archetype from m2eclipse
2.3. Starting FitNesse Wiki
2.4. Setting up to Run Tests
2.5. Running the Tests

Like Naked Objects, Tested Objects provides a Maven archetype to get you up and running with quickly. Tested Objects' FitNesse archetype runs against any Naked Objects application, and provides a new xxx-fitnesse project (where xxx is the root artifact Id). This project bundles FitNesse, contains the FitNesse wiki pages that contain the tests (and also a user guide), and allows the FitNesse wiki server to be run.

Out-of-the-box the archetype will generate a set of tests for the example claims application in the nakedobjects-4.0.x-for-maven.zip download[2], under examples/claims). These are great to try out Tested Objects for the first time, and they also provide some ideas for you to structure your own test suite.

The xxx-fitnesse project generated by the archetype is intended to be included as a module of the parent pom (xxx/pom.xml) --- in Maven parlance, it is a partial archetype. Providing that your run the archetype in the correct directory, Maven will automatically include the newly generated project in the parent project.

2.1. Prerequisites

To use the archetype you'll need to install Maven (and there's a good chance you've done this already if you're using the Naked Objects Maven archetype).

Optionally (and recommended) you can install the m2eclipse plugin for Eclipse IDE (again, there's a good chance you've done this too).