我已经将grails项目从Grails 1.3.5升级到Grails 2.0.0.RC1,并将Spock插件从0.5升级到0.6。现在在测试中出现此错误:
| Server running. Browse to http://localhost:8080/appName
| Server stopped
| Tests FAILED - view reports in target\test-reports
| Error Error executing script TestApp: java.lang.RuntimeException: Could
ad class in test type 'spock' (Use --stacktrace to see the full trace)
最佳答案
您是否将Spock插件升级到了spock:0.6-SNAPSHOT。有一个相关的StackOverflow,它引用了JIRA。
提取的是这样的:
存储库部分中的以下内容:
mavenRepo "http://m2repo.spockframework.org/snapshots"
以及以下插件依赖项定义
test ":spock:0.6-SNAPSHOT"
关于grails - Grails 2.0.0.RC1错误Spock测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7893083/