hauner / grails-cucumber

a Cucumber plugin for Grails
https://github.com/hauner/grails-cucumber
63 stars 35 forks source link

Error running the tests #1

Closed prowss closed 12 years ago

prowss commented 13 years ago

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /Users/sergei/.grails/1.3.7/projects/trip-planner/plugins/cucumber-0.1.0/src/groovy/grails/plugin/cucumber/CucumberTestType.groovy: 24: unable to resolve class cucumber.runtime.SnippetPrinter @ line 24, column 1. import cucumber.runtime.SnippetPrinter ^

1 error

at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:302)
at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:839)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:521)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:470)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:453)
at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:67)
at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:180)
at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:905)
at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:607)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy:117)
at _GrailsCompile_groovy$_run_closure4_closure10.doCall(_GrailsCompile_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:280)
at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsCompile_groovy$_run_closure4.doCall(_GrailsCompile_groovy:104)
at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:69)
at _Events$_run_closure1.doCall(_Events.groovy:27)
at _Events$_run_closure2.doCall(_Events.groovy:33)
at _Events$_run_closure3.doCall(_Events.groovy:49)
at org.apache.tools.ant.BuildListener$targetStarted.call(Unknown Source)
at TestApp$_run_closure1.doCall(TestApp.groovy:82)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:415)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.executeTargets(Gant.groovy:590)
at gant.Gant.executeTargets(Gant.groovy:589)

Error executing script TestApp: : Compilation Failed

prowss commented 13 years ago

It looks like this plugin is not uptodate with cucumber-jvm.

hauner commented 13 years ago

Yep, the cucumber-jvm api changed (again..). Unfortunately, after updating the code to the new api it does not work anymore... It detects and reports the steps but it does not run the step code. Grmpf...

hauner commented 13 years ago

I have adjusted the plugin code to the latest cucumber-jvm api. Unfortunately the groovy part seems to be broken in cucumber-jvm. See https://github.com/cucumber/cucumber-jvm/issues/85