I have an issue getting Clover code coverage working on a simple Groovy project in Eclipse. I'm using the latest versions of Eclipse (Kepler), Groovy-Eclipse (2.8.0),, Groovy (2.1.5) and Clover-Eclipse (3.1.12). I use a Linux desktop environment.
When I create a new project with a simple Groovy class and Groovy test case and run the test case with Clover enabled on the project, there is no reported coverage. It is as though Clover doesn't know that the *.groovy files are to be instrumented (despite explicitly setting the Clover config to look for *.groovy files).
I have no problems getting coverage info on *.java files (in pure-java and mixed-java-groovy projects), but *.groovy files are never instrumented for coverage.
Here's an example project where Clover coverage doesn't work when it should:
This seems to be an issue with a recent version of Eclipse/Groovy/Clover (earlier versions used to give me code coverage on simple Groovy projects without issue).
Looking forward to your response.
Groovy compilation is not supported in Eclipse and IDEA:
You can use command line tools (Ant, Maven, Grails) to compile Groovy code.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG