我想为我的 Grails 项目使用 Spock 插件。我遇到的问题是 GGTS 没有配置构建路径。所以我可以在 GGTS 中生成以下集成测试,但它会抱怨找不到 grails.plugin.spock.IntegrationSpec 包。
package junk
import grails.plugin.spock.IntegrationSpec
class MyIntegrationTestSpec extends IntegrationSpec {
def setup() {
}
def cleanup() {
}
void "test something"() {
}
}
我已经使用了 Grails 插件管理器并编辑了 BuildConfig.groovy 文件(就像插件文档所说的那样)。我已经对我的项目完成了 Grails Refresh Dependencies。我什至做了 grails clean 和 grails compile。似乎没有任何效果。