Instrumneting Unit tests with clover

Charith Wickramarachchi December 20, 2011

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
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 2, 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
TAGS
AUG Leaders

Atlassian Community Events