instantiations.coverage Ant Task

The instantiations.coverage Ant task exercises junit test code and records, at a very fine level of detail, which portions of production code are executed.

Installation

Download and unzip CodePro Server for Ant in a directory of your choice (e.g. /CodeProServer). To use the instantiations.coverage Ant task you must add the following lines near the top of your Ant build script...

<property name="CodeProServer.install.dir" location="install-dir"/>
<import file="${CodeProServer.install.dir}/ant-tasks.xml" /> ...

where install-dir is the directory into which you installed CodePro Server for Ant.

Nested Tasks

The instantiations.coverage ANT task is an umbrella task that requires nested tasks to operate. The nested tasks are:
  • <instr> Instruments a set of classes in a given list of directories and/or archives and output.
  • <merge> Merges and compacts several metadata, coverage, or session data files.
  • <report> Combines class metadata and coverage runtime data to produce coverage reports.
The common attributes and nested tasks apply to all four tasks: instantiations.coverage, instr, merge, and report. The nested tasks inherit default values for common options from the instantiations.coverage task.