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 ?


thanks,
Charith





1 answer

0 vote
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

Cheers,

Nick

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

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