【发布时间】:2021-08-13 11:12:18
【问题描述】:
让我们考虑在 Spock 中包含一些测试数据的简单测试用例
def "numbers to the power of two"(int a, int b, int c) {
expect:
Math.pow(a, b) == c
where:
a | b | c
1 | 2 | 1
2 | 2 | 4
3 | 2 | 9
}
是否可以使用 vanilla Intellij 或某些插件来运行单个测试数据输入?例如只需 1 | 2 | 1 而无需注释掉所有其他人?
【问题讨论】:
-
不,intellij 不支持
标签: unit-testing testing intellij-idea spock