无法在grails中运行cucumber

无法在grails中运行cucumber,grails,cucumber,Grails,Cucumber,我正试着在圣杯里放黄瓜。我得到以下错误 Error | Error loading event script from file [C:\Users\target\work\plugins\cucumber-0.9.0\scripts\_Events.groovy] No such property: ant for class: _GrailsSettings (Use --stacktrace to see the full trace) ..........................

我正试着在圣杯里放黄瓜。我得到以下错误

Error | Error loading event script from file [C:\Users\target\work\plugins\cucumber-0.9.0\scripts\_Events.groovy] No such property: ant for class: _GrailsSettings (Use --stacktrace to see the full trace) ..................................................................... |Server stopped Error | Fatal error running tests: taskdef class org.codehaus.groovy.grails.compiler.Gra ilsc cannot be found using the classloader AntClassLoader[] (Use --stacktrace to see the full trace) .Tests FAILED | - view reports in C:\Users\target\test-reports Error | Error running forked test-app: taskdef class org.codehaus.groovy.grails.compiler .Grailsc cannot be found using the classloader AntClassLoader[] (Use --stacktrace to see the full trace) | Error Forked Grails VM exited with error 错误| 从文件[C:\Users\target\work\plugins\cucumber-0.9.0\scripts\\u Events.groovy]加载事件脚本时出错没有这样的属性:ant 对于类:_GrailsSettings(使用--stacktrace查看完整跟踪) ..................................................................... |服务器停止 错误| 运行测试时出现致命错误:taskdef类org.codehaus.groovy.grails.compiler.Gra 找不到ilsc 使用classloader AntClassLoader[](使用--stacktrace查看完整跟踪) 。测试失败 | -在C:\Users\target\test reports中查看报告 错误| 运行分叉测试应用程序时出错:taskdef类org.codehaus.groovy.grails.compiler 找不到.Grailsc 使用classloader AntClassLoader[](使用--stacktrace查看完整跟踪) |错误分叉Grails VM已退出,出现错误
是什么原因导致了这种情况,我该如何解决呢?

最后我发现了它,因为我使用的是grails 2.3.x,在这里我们使用了分叉执行,Cumber插件不起作用,所以请删除grails.project.fork=[]form buidconfig.groovy那么这应该行得通

最后我找到了它,因为我使用的是grails 2.3.x,在这里我们使用了分叉执行,它不起作用,所以删除grails.project.fork=[]form buidconfig.groovy那么这应该行得通

你能用verbose模式运行应用程序吗。因为上面的日志不是很详细。在grails命令中:运行app--verbose,并在此处为我们提供详细的日志。实际上,我在grails 2.3.4中使用命令“grails test app”运行这个应用程序,您可以使用详细模式运行该应用程序。因为上面的日志不是很详细。在grails命令中:运行app--verbose,并在此处为我们提供详细的日志。实际上,我是在Grails2.3.4中使用命令“grails测试应用程序”来运行它的