It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Clover Code Coverage - remote server

Somnath Guha Dec 10, 2015

Hi ,

I am trying to generate code coverage report without restarting the server. In my case I have multi module ant project. In each project I have added following in the build.xml file:


<!-- Clover Setup -->
<property name="clover.jar" location="../javalibs/clover-4.0.4.jar"/>
<property name="coverage.results.dir" location="D:\installed\Atlasian\clover\mergeddb"/>
<property name="coverage.flush.interval" value="1000"/>

<taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>

<property name="coverage.db" value="${coverage.results.dir}/coverage.db"/>

<target name="with.clover" >
<clover-setup initstring="${coverage.db}" flushpolicy="interval" flushinterval="500" />
<!-- Clover Setup -->

I am compiling all the projects using following ant command:

ant clean with.clover jar

It is creating coverage.db file in specified location.

Then I am starting my jboss application server with following command

run.bat -Dclover.initstring.basedir=D:\installed\Atlasian\clover\mergeddb

Then I am executing my unit test cases. JBOSS lib folders contains clover jar file.

I want to generate colver recorder files without shutting down the jboss server. But recorder files getting generated only when I am shutting down the jboss application server. 


Please help!!

1 answer

0 votes
Grzegorz Lewandowski Atlassian Team Dec 14, 2015
  1. What is mergeddb are you using merge task to merge multiple Clover databases into one ?
  2. Could you run that JBoss with Clover debugging enabled ? You have to specify the following JVM property:


    And look for similar strings in the logs:

    Started active flush thread for registry at ***DB PATH*** with interval=500


    [flushed recorder ***filepath*** ***timestamps***]

    If you encounter the following:

    Added shutdown hook for registry at ***DB PATH***

    It means that the flush policy wasn't recognized during runtime. You can also attach the log files here to let us analyze it further. If you are worried about data confidentiality you can rise an support request using 

  3. How are you deploying builded artifact to JBoss and when exactly ?


Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Handling Opsgenie Alerts

Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers.   All alerts are ...

72 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you