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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • 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

Recording files are not generated in the directory where db file is present

Hi All,

I have multi-module maven project. So, I have done all the clover configuration in parent module pom.xml file so that the configuration will be inherited in all the sub modules.

I have generated the cloverized build using the following command,

mvn clover2:setup install clover2:aggregate clover2:clover -Dmaven.clover.licenseLocation=<clover.license_file_path> -P All -Dmaven.test.failure.ignore=true -Dmaven.repo.local=<m2_repo_path>

 

Now, it has generated the "cloverMerge.db" file in the target directory of parent module. While doing the configuration, I have specified path of "cloverMerge.db" file in java arguments in eclipse.

 

When I start my server it is not creating the recording files at the location where my cloverMerge.db file is present.

 

What should I do? Am I missing anything in the configuration?

I have referred the below link for the configuration,

           https://dzone.com/articles/use-clover-generate-code-0

 

Any help is really appreciated.

1 answer

0 votes

First, please don't use 'clover2:setup' but 'clover:setup' (unless you deliberately want to run old version of Clover).

Second, a merged database cannot be used for code coverage recording. It can be used for reporting purposes only. It means that you have the following options:

  • use multiple clover.db files (each for one module, which is a default Clover behaviour, as far as I remember)
  • use a single, but not merged clover.db file - you can do this by specifying an absolute path in <cloverDatabase> in your root pom.xml - this way all Maven modules being compiled will append their data to this file

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

176 views 2 9
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