Clover with Grails 2.3.5

Does Clover work with Grails 2.3.5? Are there any issues?

1 answer

1 accepted

0 votes
Accepted answer

The Grails version 2.3.5 has introduced several changes in a way how the framework works, so you might encounter some issues with a Clover:

1) Build with Clover fails with "No such property: testTargetPatterns".

This property has been removed in Grails 2.3.5. You shall upgrade your Grails Clover Plugin to version 3.2.2 or later which has a fix for it (CLOV-1396).

2) Integration tests are not being instrumented by Clover.

Grails 2.3.5 has a new GrailsIntegrationTestCompiler and a new way how GrailsTestRunner works. Upgrade your Grails Clover Plugin to version 3.2.2 or later which has a support for it (CLOV-1432).

3) Unable to instrument code when Clover plugin is being installed.

Grails 2.3.5 does not resolve transitive plugin dependencies during installation of a plugin. This happens only once, at the time when a plugin is being installed; in next build(s) a missing dependencies will be downloaded and added to a class path.

As a consequence, your first attempt to run "grails compile/test-app -clover.on" might fail. Solution: add a dependency to com.cenqua.clover:clover in BuildConfig.groovy. See

Note: dependency resolution works correctly in Grails 2.2.0-2.3.4.

4) Automatic Clover integration with Grails project fails in Bamboo.

Grails 2.3.5 no longer supports the installation of a plugin using the 'grails install-plugin' command. As Bamboo Clover Plugin uses this command to automatically integrate Clover, it will not work with Grails 2.3.5 or later.

In a build log you can find a message like:

grails install-plugin clover

| Warning
Since Grails 2.3, it is no longer possible to install plugins using the install-plugin command.
Plugins must be declared in the grails-app/conf/BuildConfig.groovy file.

grails.project.dependency.resolution = {
   plugins {
      compile ":clover:3.2.2"

Additionally, add these custom repositories to the "repositories" block:


Use manual Clover integration.


Bug report:


I am trying to use this with clover 3.2.2 with grails 2.3.5 as suggested in #1. But am seeing this error:

| Running without daemon...
Error running forked test-app: No such property: testNames for class: _Events
groovy.lang.MissingPropertyException: No such property: testNames for class: _Ev
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptByteco
        at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjec
        at _Events$_run_closure3.doCall(_Events.groovy:75)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(
        at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(Refl
        at org.codehaus.groovy.reflection.CachedMethod.invoke(
        at groovy.lang.MetaMethod.doMethodInvoke(
        at groovy.lang.MetaClassImpl.invokeMethod(
        at groovy.lang.ExpandoMetaClass.invokeMethod(
Error |
Error running forked test-app: No such property: testNames for class: _Events
| Error Forked Grails VM exited with error

Please help!

Hi, could you please try running a build without the fork?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

244 views 4 1
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