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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Does clover support to read and write clover.db and coverage recording files from ftp server?

Currently, we are trying to use clover as the code coverage tools for our distributed system. Which requires a network file system to share the clover.db and coverage recording files. But it's not covinient to use network file, many reasons. My question is, does clover support to read and write clover.db and coverage recording files throught ftp? Such as I can define the maven configure "clover.initstring=ftp://test:111111@hostname/projects/xxx/clover/clover.db".

If yes, how to configure it?

1 answer

0 votes

Hi Juan,

And what about writing coverage files on a local storage? There's a version of a coverage recorder which does not reqiure access to a Clover database. See this topic:

This could simplify your deployment. Imagine a following scenario:

1. compile application with Clover using the Growable Coverage Recorder

you can do it by defining a <profile> in the <clover-setup> (in case of Ant), e.g.:

&lt;clover-setup initstring="/build/server/path/to/clover.db"
    &lt;profile name="default" coverageRecorder="GROWABLE"&gt;
      &lt;!-- &lt;distributedCoverage/&gt; optional --&gt;
  &lt;!-- other options --&gt;

A database will be created on your build server in a location specified by initstring.

2. run application with a fake path to coverage recorder

A growable recorder puts coverage data files in a directory where clover.db is located (no matter wheter the clover.db actually exists or not). So you can point to another location, e.g.:

java -cp ... -Dclover.initstring=/path/on/a/node/clover.db

I assume that all nodes in your system can write to the same location.

3. collect coverage data files

As soon as your tests are finished, copy coverage files from all nodes (using whatever tool available) back to your compilation server to a directory where the Clover database is present.

4. generate report

Create report(s) using the database and coverage files.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Happy New Year and Welcome New Marketplace Partner Program Partners!

Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...

509 views 7 18
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