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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

32 views 1 3
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