CloverMerge can't merge code coverage data.

My project is a RPC project, there are two child project.

so I create two db. the instrument command as below

java -cp clover-3.0.2.jar com.cenqua.clover.CloverInstr -i cm_clover_ui.db -s client\com.cubrid.common.ui\src -d instr\com.cubrid.common.ui\src
java -cp clover-3.0.2.jar com.cenqua.clover.CloverInstr -i cm_clover_core.db -s client\com.cubrid.cubridmanager.core\src -d instr\com.cubrid.cubridmanager.core\src

then I compile class and run prgram and generate many db. there are as below.





and I use merage command to merage db.

java -cp clover-3.0.2.jar com.cenqua.clover.CloverMerge -i cm.db cm_clover_core.db cm_clover_ui.db

then I generate report for cm.db.

java -cp clover-3.0.2.jar com.cenqua.clover.reporters.html.HtmlReporter -i cm.db -o report

but I can't got code coverage data.

when I generate cm_clover_core.db report, I can got code coverage data.

My Clover version is 3.0.2 .

I guess the reason is code coverage data store at cm_clover_core.db4qm69_gw7e9c3s and cm_clover_ui.db5f4vo_gw7d5sza file . those file not be merege.

Could you help me to merge code coverage data?

Thank you in advance !

1 answer

0 votes

Hi David,

Do you have both database files (cm_clover_core.db + cm_clover_ui.db) as well as coverage recordings (multiple files named like cm_clover_core.db4qm69_gw7e9c3s + cm_clover_ui.db5f4vo_gw7d5sza) stored in the same directory?

Have you tried to generate report for cm_clover_ui.db and see how coverage looks like?


Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,415 views 21 17
View question

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