Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0-M1
-
Component/s: None
-
Labels:None
-
Environment:Grails 1.4.0.BUILD-SNAPSHOT
Description
Create a fresh project then run grails create-integration-test org.example.Dummy (or whatever). Then run grails integration-test. The resulting output is something like:
| Packaging plugins..... | Error 2011-06-20 11:11:19,745 [main] ERROR plugins.DefaultGrailsPluginManager - Error configuring dynamic methods for plugin [core:1.4.0.BUILD-SNAPSHOT]: No such property: getMetaClass for class: groovy.lang.MetaClassImpl Line | Method ->> 102 | doCall in _GrailsBootstrap_groovy - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 94 | doCall in '' | 134 | doCall in '' | 311 | doCall in _GrailsTest_groovy | 181 | doCall in '' | 174 | doCall in '' ^ 82 | doCall in TestApp.groovy | Running 3 integration tests... 1 of 3 | Failure: testSomething(org.example.DummyTests) | groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.test.junit4.runner.GrailsTestCaseRunner.withRules() is applicable for argument types: (org.junit.runners.model.FrameworkMethod, org.example.DummyTests, org.junit.internal.runners.statements.RunAfters) values: [org.junit.runners.model.FrameworkMethod@a215bccf, org.example.DummyTests@4da7234f, org.junit.internal.runners.statements.RunAfters@17ff3f5d] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at org.codehaus.groovy.grails.test.junit4.runner.GrailsTestCaseRunner.methodBlock(GrailsTestCaseRunner.groovy:84)
So, the big problem is that even an empty integration test won't run. A lesser but still significant problem is the amount of error output (without much that's useful).
I also noticed that create-integration-test creates a test case with the GrailsUnitTestMixin. Does this make sense?