You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have some projects that are in java and groovy (and some with scala as well). I would like to use clover to generate metrics on all of the source code using all of the test code. Some general information...
Source code is in src/main/java, src/main/groovy
Test code is in src/test/java, src/test/groovy
Using Maven 3 to build, with groovy-eclipse-compiler for compiling groovy sources.
Further information can be provided if required. I'm wondering that if, with this setup, clover will automatically generate metrics on all of the code in the projects, or just the groovy code (it seems to be only groovy).
When you generate HTML report do you see both Java and Groovy sources listed? If not, then it must be sth wrong in your pom.xml setup. Report and metrics are calculated on all of the code which was instrumented.
Please have a look at: Compiling+Groovy+with+Groovy+Eclipse+Plugin
Regards
Marek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response. I think my issue might be stemming from the use of the maven-build-helper plugin. Does defining test sources using that plugin cause the same issue as defining them under <sourceDirectory>?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess that you're asking about CLOV-1144 bug mentioned on the manual page? Yes, if you define <testSourceDirectory> for maven-compiler containing Groovy files, you'll end up with the same error as for "main" sources. You have to use either maven-build-helper or groovy-eclipse-compiler with extensions=true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy New Year! We hope you all had a safe and restful holiday season. 2020 was a unique year full of unforeseen events; however, as we enter the new year of 2021, we’re optimistic for the light at t...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.