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:
https://bitbucket.org/awilmore/clover-eclipse-test/src
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.
Regards,
Adam
Groovy compilation is not supported in Eclipse and IDEA:
https://confluence.atlassian.com/display/CLOVER/Supported+Platforms
You can use command line tools (Ant, Maven, Grails) to compile Groovy code.
Thanks, that explains it...
Although I could have sworn I had Groovy code coverage in Eclipse via Clover a year or two ago.
Are there any plans to support Groovy coverage in Eclipse/IDEA at some point?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have no plans to add direct support for Groovy in Eclipse/IDEA right now. Clover is mostly used in automated builds thus there are many other features worth implementing. See Clover Roadmap for deatils.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's possible to instrument Groovy using Ant/Maven/Grails and next point to the genereated database (clover.db) in the Eclipse/IDEA IDE. Thanks to this trick, the Project Explorer view should show your Groovy classes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.