【发布时间】:2016-05-29 21:26:45
【问题描述】:
我无法在 IntelliJ IDEA 中运行集成测试。这是 grails create-integration-test
生成的测试模板@Integration
@Rollback
class TestServiceIntSpec extends Specification{
void "test something"() {
//some code here
}
}
这是我尝试从 junit 配置运行时的输出:
Process finished with exit code 0
Empty test suite.
如果我从 IDE 运行此测试,似乎也像使用开发环境的 grails,我必须通过 -Dgrails.env=test 明确指定环境
【问题讨论】:
标签: grails intellij-idea integration-testing grails-3.0