How to reconfigure Clover at runtime or make performance tuning?

Let's assume that I have instrumented and compiled code using Clover with some settings (such as initstring, flush policy etc). Is there any way to change these settings at runtime when running tests? Are there any means to speed up Clover during compilation or runtime, especially for large applications?

1 answer

1 accepted

0 vote

Clover has over two dozens of properties, which you can pass to JVM during compilation, runtime or reporting:

Thanks to them, you can override Clover's default settings or settings which were configured in a build file.

Some of the settings worth noticing:

  • clover.enable, clover.profile, clover.pertest.coverage, clover.pertest.coverage.threading - enabling and configuring Clover's coverage recorders
  • clover.server, clover.distributed.coverage - configuring distributed coverage feature
  • clover.initstring, clover.initstring.basedir, clover.initstring.prefix - changing location in which Clover looks for a database file

 

There are few settings used by Clover-for-Ant during compilation:

  • clover.includes, clover.excludes

Similarly, the Clover-for-Maven plug-in has a number of configuration options which can be also passed as -Dkey=value parameter for Maven, for instance:

  • maven.clover.flushPolicy, maven.clover.jdk, maven.clover.cloverDatabase

 

There is also a possibility to tune Clover's performance during compilation and reporting - see https://confluence.atlassian.com/display/CLOVER/Clover+Performance+Tuning.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

96 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you