|
This page contains instructions on how to tune Clover's performance when running your builds and measuring code coverage. On this page: Configure 'Unique Coverage' TrackingUnique coverage relates to a line of code that was hit by only one test. Unique coverage tracking can be switched off to reduce CPU & memory usage when running Clover.
Set Instrumentation to "method level" (when using Test Optimization)If you use Clover in your build purely for Test Optimization purposes and not for coverage reporting, you can reduce the granularity of Clover instrumentation from statement to method level. The ' This speeds up the build at the loss of some accuracy. This is the setting to use if you want to improve Clover's performance. When this attribute is set to 'statement' (the default), the builds will take longer but the optimization intelligence will also be stronger. You can configure instrumentation level in the following Clover-for-Ant tasks:
See the Ant Task Reference for more information. Runtime Performance SettingsDuring your test runs, Clover tries to record total code coverage and per-test code coverage as efficiently as possible but defaults to settings best for applications which are not highly CPU intensive. If your application is highly CPU intensive and code coverage recording is causing slow running tests, the following options may assist:
Related Links |
|
|
|
|
|






