|
In this scenario, a developer is responsible for obtaining a certain level of code coverage on her code before it is accepted into the base.
This process is repeated until all tests pass and code coverage of the tests meets a certain level. Clover provides the following features to support this development pattern:
Measuring coverage on a subset of source filesThe The includes could be set using an Ant property so that individual developers can specify includes on the command line: Developers can then use a command line like: Viewing source-level code coverage quicklyClover provides two ways of quickly viewing coverage results. The The output format from the Viewing summary coverage results quicklyThe Incrementally building coverage resultsWhen iteratively improving coverage on a subset of your project, you may want to include coverage data from several iterations in coverage results. Clover supports this with the span attribute which works on current reports — see Using Spans. This attribute can be used to tell Clover how far back in time to include coverage results (measured from the time of the last Clover build). To include results gathered over the last hour use: |
|
|
|
|
|






