Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Flush Policy is not working

RaviKumar Gaddabathini June 4, 2012

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"/>
</fileset>
</clover-setup>

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
-Dclover.initstring.path=/home/xactly/incentint/rel_6.5.0.0/apps/jboss-4.0.2/server/xicmcompserver0/deploy/clover.db

Thanks for your help in advance

Ravi Kumar

1 answer

0 votes
Marek Parfianowicz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 5, 2012

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

Regards
Marek

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events