This documentation is for Clover 4.0.x. Earlier versions are available here.

Skip to end of metadata
Go to start of metadata

Description

The <clover-snapshot> task generates a snapshot file used to assist Clover in optimizing the tests run in subsequent. This task should be run at the end of a build (i.e. after all unit tests have run).

Parameters

Attribute

Description

Required

file

Specifies an alternative location for the snapshot file.

No; defaults to the initstring + ".snapshot".

span

Clover interval (e.g. "2m" or "3h"); specifies, for the initial build cycle, the span for coverage used in generating the snapshot file used for test optimization; normally only specified when multiple interleaved compiles & test runs happen during a build cycle

No; defaults to "0s" (zero seconds).

Examples

Generates a snapshot file used to assist Clover.

Specifies an alternative location of "C:\My Documents\clover.snapshot" for the snapshot file.

Defines a custom span of "3m" (three minutes) used in generating the snapshot file used for Test Optimization.

  • No labels