Generating Clover reports takes a long time

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

Running build with Clover and generating reports takes considerably much more time compared to a build without Clover. For example: several minutes instead of several seconds.

Build is made using Clover-for-Maven plugin. Flush interval is set to a very high value (e.g. 1 minute):

mvn clover:setup install clover:clover
<configuration>
    <singleCloverDatabase>true</singleCloverDatabase>
    <flushPolicy>threaded</flushPolicy>
    <flushInterval>50000</flushInterval>
</configuration>

 

Cause

The maven-clover-plugin is waiting for a flush to occur before each report (or log) is generated. As a consequence, if very high flushInterval value is used, it must wait this time for every module build.

 

Resolution

Set low value of flushInterval or use the default setting (i.e. do not declare it in pom.xml).

   


Last modified on Dec 8, 2015

Was this helpful?

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