Instrumneting Unit tests with clover

Hi ,

I'm trying to integrate Clover reporting with Bamboo.

For that i followd folowing steps.

1) add <pluginGroup>com.atlassian.maven.plugins</pluginGroup> to PluginsGroup section of my maven settings.xml

2) Ran the taks with maven task with goles : clean install clover2:setup clover2:aggregate clover2:clover

I can see tests getting executed , clover.xml and site is created but when i open the report it shows as no tests ran during the execution.

Test Results   0 / 0 tests 0 secs
No test results could be found. Please ensure that you have instrumented your unit tests correctly.

are there any more configurations that i need to get this to work ?


1 answer

0 votes
Nick Pellow Atlassian Team Jan 02, 2012

Hi Charith,

You need to run clover2:setup before your source code gets compiled.

Try the following:

mvn clean clover2:setup test clover:aggregate clover2:clover



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

203 views 4 1
Join discussion

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