Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1396

"No such property: testTargetPatterns" exception with Grails 2.3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 3.2.2
    • 3.2.0
    • Grails Plugin
    • None

    Description

      Unable to use Clover-for-Grails with Grails 2.3. Build fails with an exception:

      |Environment set to test
      ...................................    [mkdir] Created dir: C:\Work\grails-clover-plugin-hg\testcases\petclinic233\target\test-reports\html
      .    [mkdir] Created dir: C:\Work\grails-clover-plugin-hg\testcases\petclinic233\target\test-reports\plain
      .Error
      |
      Error executing script TestApp: No such property: testTargetPatterns for class: _Events
      groovy.lang.MissingPropertyException: No such property: testTargetPatterns for class: _Events
              at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
              at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
              at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
              at _Events$_run_closure3.doCall(_Events.groovy:75)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:601)
              at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
              at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1086)
              at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110)
              at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:910)
      

      Reason:

      In the Grails 2.3 the _GrailsTest.groovy has been refactored into GrailsProjectTestRunner and GrailsProjectTestCompiler. The testTargetPatterns property has been removed.

      Probable fix:

      Replace testTargetPattern by iterator over testNames.

      Attachments

        Issue Links

          Activity

            People

              mparfianowicz Marek Parfianowicz
              mparfianowicz Marek Parfianowicz
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: