|
Clover provides a set of high level, preconfigured Ant targets. A target is a high-level, pre-configured set of functionality that you can use to quickly integrate Clover. They can be launched by adding them as values to Ant on the command line. Each target contains a number of logically grouped lower-level pieces of functionality made up of Clover-specific Tasks and Types. These allow you to harness Clover's feature set, applying the concept of convention over configuration. This should help you avoid laboriously coding your own targets from scratch — allowing you to rapidly begin using Clover, no matter how complex your environment.
On this page: Using a TargetEach Clover target typically has a name (and optional Ant properties) that can be used on the command line, as follows: In the above example, we are running the
with.clover (target)Enables Clover on the current build. There are no properties for this target. Example:
clover.all (target)Runs 9. Clover Target Reference, 9. Clover Target Reference, a test and 9. Clover Target Reference (in that order) from a single target. clover.all Properties:
Example: In the example above, we are specifying the
clover.clean (target)Deletes the clover database and the Example:
clover.current (target)Generates HTML and XML reports to clover.current Properties:
Example:
clover.report (target)This is the same as clover.current, i.e. it generates HTML and XML reports to clover.report Properties:
Example:
clover.save-history (target)Saves a history point to clover.save-history Properties:
Example:
clover.snapshot (target)Saves a snapshot file to assist with Clover's Test Optimization feature. There are no properties for this target. Example:
clover.snapshot.file (target)Defines the location of the snapshot file to use when saving optimized data. For use with Clover's Test Optimization feature. Example:
clover.max.optimized.builds (target)Defines the number of optimized builds to run before a full build is done. For use with Clover's Test Optimization feature. Example: Custom TargetsClover targets can be modified or overwritten. You can also create your own targets by specifying targets with the same names in |
|
|
|
|
|






