Problems with 'clovered jar' inside of an application

Hi,

 

I'm currently evaluating Clover and unfortunately I'm facing a problem.

Our system is built out of 5 projects:

  • core
  • serverA
  • serverB
  • serverC
  • serverD

All 4 servers use the common code from 'core'

I was able to produce 5 individual clover reports by running the unit tests in those projects and I was also able to merge them together.

 

Now, what we want to achieve is the following: run all 4 servers, do a manual test of the system and collect the clover report. (Does not necessarily have to be written to the merged unit-test-clover-db). I instrumented the core code; put the resulting jar inside the other projects; instrumented the 4 server parts as well.

 

Currently i'm using the clover command line tool CloverInstr with options  "-p interval -f 1000 -v --singleCloverDatabase true" to create the instrumented code.

This works fine,clover automatically chooses a db location and all 4 server process write to this db. The one thing that is not working is, that the instrumented 'core' library does not seem to write to to this db.

 

Any hints? Does my usage of 'singleCloverDatabase' and the general setup sound reasonable?

Might it be problem that i have the clover.jar two times in each server's classpath?

 

Thank you,

Dieter

 

 

 

1 answer

1 accepted

Aaargh, my fault. The core classes in the servers were not the instrumented ones.

Everything is fine now, clover working great

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

128 views 0 5
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