Clover integration with Bamboo -- only see numerical coverage stats, not graphical Clover dashboard

Here's how I'm setting things up...

Clover Setup (in Ant script)

<clover-setup enabled="true" initstring="${clover.db.path}/clover.db" />

Clover Report (in Ant Script)

<clover-report initstring="${clover.db.path}/clover.db">			
    <current outfile="${test.dir}/clover.xml" />
</clover-report>

Bamboo > Plan > Job > Configuration

Use Clover to collect Code Coverage for this build -- SELECTED

Clover is already integrated into this build and... -- SELECTED

Clover XML Location: test/clover.xml

The Ant scripts are run by a Bamboo plan. See attachment for what I'm seeing -- basically only a few Clover coverage stats are displayed, nothing graphical.

What I'm expecting to see is the full Clover graphical dashboard, breaking down the coverage by class, etc. Such as when I do create an HTML report. If you go to the bottom of the comments on this page, you will see others describing the same issue: https://confluence.atlassian.com/display/BAMBOO/Enabling+the+Clover+add-on

1 answer

1 accepted

Hi Michael,

We discussed this questions in a private ticket. I am updating the current page for the community in case someone else has the same question.

In addition to the Clover XML report (Bamboo takes numbers from the clover.xml for charts) you have to generate the Clover HTML report in order to see the coverage charts:

1) Enhance your Ant target like this:

<clover-report initstring="${clover.db.path}/clover.db">			
    <current outfile="${test.dir}/clover.xml" />
    <current outfile="${test.dir}/clover_html">
        <format type="html"/>
    </current>
</clover-report>

2) Define a build artifact named "Clover Report" for your Bamboo build containing all files from test/clover_html. For example:

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 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 ...

1,030 views 6 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