Creating an Ant build script to generate code coverage statistics in remote build environments

To work with code coverage in remote build environments you must create an Ant build script that generates code coverage statistics and publish the results.

Before you begin

Your project must have an XML file for your Ant build script (for example, named build.xml) that you can edit.

About this task

The process of creating the Ant build script is divided into the tasks listed later in this section. In each step, you update the Ant build script file for your project. Sample content for an Ant script is available that you can copy into your file and modify as described in the following steps.

Procedure

  1. Set up the Ant build script.
  2. Generate the baseline and probescript files.
  3. Run the application and generate statistics.
  4. (Optional) Generate HTML reports.
  5. (For Rational Team Concert™ builds only) Publish results to the Rational Team Concert server.

Feedback