我正在将 Grails + groovy 与 Spock 一起使用。在我安装 Spock 并开始编写单元测试之前,该应用程序构建良好。
JVM 版本 - 1.8.0_171***Grails 版本 - 3.3.6***Groovy 版本 - 2.4.15
依赖项 -
testCompile "org.grails:grails-gorm-testing-support"
testCompile "org.grails:grails-web-testing-support"
testCompile "org.grails.plugins:geb:1.1.2"
testCompile "org.spockframework:spock-core:1.1-groovy-2.4-rc-2"
testCompile "org.grails:grails-test-mixins:3.3.0.RC1"
我也在 IntelliJ(ultimate) 中尝试了“清理”和“使缓存无效/重新启动”。