Flush Policy is not working

Hi All,

Using Clover with ant >> Flush Policy is not working.

I am working in QA team and hence I am running my tests using QTP tool

Use case: Instrumented the code using the flushpolicy and then copied clover.db into the different app server and ran all my tests ( which took almost 6 hours ).

When I tried to generate the report while test is going on ( after 1hr ) It says no data is generated But flushinterval is set to 1min. Data is only being written when I exit the JVM

I have instrumented the code as follows:

<clover-setup initstring="${icm.classes.dir}/clover-db/clover.db" flushpolicy="interval" flushinterval="600000" >
<fileset dir="${src.dir}/com/xactly/icm/computation/">
<include name="**/*.java"/>

Is the flushpolicy working for any one when the clover.db is moved to different server?

Note: I mentioned to JVM where the clover.db file is located by adding the following command to JAVA_OPTS before starting the app server

Thanks for your help in advance

Ravi Kumar

1 answer

0 votes

Hi Ravi,

Note that a flushinterval="600000" means 10 minutes and not 1 minute.

There is no such option as "clover.initstring.path". Use the -Dclover.initstring=/path/to/your/clover.db


Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

425 views 1 14
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot