Coverage Recording files not getting created after deploying application and running.

Hi All,

We have deployed a connector software built in java in the server. Now we have placed the clover.jar in the location where application jars were deployed. (So we were able to bypass the noclassdef found error com.atlassian testnamesniffer)

 

Now the instrumented application is running fine but coverage recording files are not getting created.

<clover-setup initstring="/tmp/clover/clover4_1_2.db"/> is set in the build.xml

Ensured the folder has the clover4_1_2.db already in place.

I would like to tell you the way we instrumented which might become handy to resolve the issue : Our application deployed is a tar.gz file. which internally have two jar files. We have instrumented a single .jar and the other is left as is.

Inside the sub project, we have updated the build.xml with clover.jar path, initstring with .db file path etc...

<target name="with.clover">
<clover-setup/>
</target>

 

Can you please let me know why the coverage recording files not getting created ? Any debug steps we have to do.

 

1 comment

Please have a look at this KB article:

https://confluence.atlassian.com/cloverkb/no-coverage-recordings-found-no-report-will-be-generated-611812757.html

Also, check what flushPolicy do you use:

  • if it's the default one, then coverage recordings are kept in memory and written to disk on JVM shutdown; so ensure that you gracefully stop your application server (i.e. not 'kill -9') before generating reports
  • alternatively, switch the flushPolicy to "interval" and set flushInterval value (default is 5 seconds, I would recommend 500 ms)

Comment

Log in or Join to comment
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 ...

938 views 5 18
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