我正试图在grails中运行黄瓜。我收到以下错误。
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
可能导致此问题的原因,以及如何解决?
答案 0 :(得分:4)
最后我发现它是因为我在使用Grails 2.3.x这个我们有分叉执行,哪个黄瓜插件不起作用所以删除grails.project.fork = []形式buidconfig.groovy然后这应该工作