Commits

Marek Parfianowicz committed d60c6bb

CLOV-930 grails test optimization - fixed workaround related with accessing method via reflections; anonymous inline class implementing Optimizable was replaced by StringOptimizable; updated version number (grails plugin 3.1.11, used core 3.1.11-SNAPSHOT)

  • Participants
  • Parent commits 730a02a

Comments (0)

Files changed (5)

File CloverGrailsPlugin.groovy

 class CloverGrailsPlugin
 {
   // the plugin version
-  def version = "3.1.10.1"
+  def version = "3.1.11"
   // the version or versions of Grails the plugin is designed for
   def grailsVersion = "1.3.* > *"
   // the other plugins this plugin depends on

File grails-app/conf/BuildConfig.groovy

 clover {
     debug = false;
     on = false;
-    core.version = "com.cenqua.clover:clover:3.1.10"
+    core.version = "com.cenqua.clover:clover:3.1.11-SNAPSHOT"
     license.path = "clover.license"
 }
 
     <groupId>org.grails.plugins</groupId>
     <artifactId>clover</artifactId>
     <packaging>zip</packaging>
-    <version>3.1.10.1</version>
+    <version>3.1.11</version>
     <name>Clover Code Coverage for Grails</name>
     <description>\
         A plugin that integrates Clover into GRAILS projects.

File scripts/_Events.groovy

         final List<GrailsTestTargetPattern> optimizedTestTargetPatterns = new LinkedList<GrailsTestTargetPattern>()
         optimizedTests.each {
             // String className = it.getName()
-            final String className = (String)it.toString() // it.getClass().getMethod("getName").invoke(it)
+            final String className = (String)it.getClass().getMethod("getName").invoke(it)
             optimizedTestTargetPatterns << new GrailsTestTargetPattern(createTestPattern(className))
         }
 

File testcases/petclinic203/grails-app/conf/BuildConfig.groovy

     }
 
     plugins {
-        compile ":clover:3.1.10"
+        compile ":clover:3.1.11"
         compile ":tomcat:$grailsVersion"
         compile ":hibernate:$grailsVersion"
     }