Getting started with Clover-for-AntThis section shows you how to quickly get Clover integrated into your build. Clover instrumentation and reporting are highly configurable so later sections of this manual will detail available configuration options and typical usage scenarios.
Follow these simple steps to integrate Clover with your build: 1. Install Clover1.1 Ensure you are using a recent version of Ant (v1.6.1 or greater). 1.2 Download Clover from http://www.atlassian.com/software/clover/CloverDownloadCenter.jspa. 1.3 Unzip the Clover distribution into a directory. This directory will be referred to as CLOVER_HOME in this guide. 1.4 Place your 2. Add Clover targetsEdit build.xml for your project: 2.1 Add the Clover Ant tasks to your project: 2.2 Add a target to switch on Clover: 2.3 Add one or more targets to run Clover reports: For HTML reporting, use the following (but change the OR, for PDF reporting, use the following (but change the OR, for XML reporting, use the following (but change the OR, for simple emacs-style reporting to the console, try: 2.4 Add Compile and run with CloverNow you can build your project with Clover turned on by adding the " Generate a Coverage ReportTo generate a Clover coverage report:
FURTHER READING |
|
|
|
|
|






