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

Cheers,

Nick

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

296 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