clover-snapshot

Still need help?

The Atlassian Community is here for you.

Ask the community

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


<clover-snapshot/>

Generates a snapshot file used to assist Clover.


<clover-snapshot file="C:\My Documents\clover.snapshot"/>

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


<clover-snapshot span="3m"/>

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

Last modified on Nov 11, 2008

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.