
- Introduction
- Adding JTestConnect to your project
- How to Annotate Your Classes
- Configuring JTestConnect
- Building JTestConnect from source
What is JTestConnect?
This is a very simple tool that can be built into your ant build system. It allows you to add annotations to your production code to indicate classes/methods that should be tested. JTestConnect analyses all of these annotations and constructs a set of test requirements. It then checks all of your test classes to ensure that these requirements are satisfied.
JTestConnect is intended to complement test coverage cools and to help software development teams stay on top of their test code. Often large parts of a project can go completely untested without anybody noticing, or perhaps tests get "lost" when production code is changed.
With this tool you can declaratively state your testing intentions and ensure that code exists to meet your expectations.
Let's take a look at what actually happens when we use JTestConnect to check our code:

Each production class is scanned in turn and checked for annotations. For each class which is annotated, one or more test requirements is created. The requirements are then checked against the test code base and a report is generated describing the unsatisfied requirements. If you choose to, the build process can be halted.