【发布时间】:2019-02-08 17:58:17
【问题描述】:
我有一个使用 where 子句的 Spock 测试。在 Eclipse 中,测试文件是使用 Groovy 编辑器打开的,但是代码(“testName”)和where 子句(testNum 和 testName)中的数据变量都带有下划线。 Maven 构建工作正常。
谁能告诉我如何在 Eclipse 中解决这个问题?
@Unroll
def 'Test #testNum'() {
def tname = testName
......
where:
testNum | testName
'1' | 'test #1'
}
【问题讨论】:
-
你不能... IntelliJ 能识别它们,但 Eclipse 不能
-
@tim_yates 谢谢。我希望 Eclipse 有一个插件。