运行 Spock 中 Intellij 中的单个测试数据条目
Run single test data entry in Intellij in Spock
让我们考虑在 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
而不需要注释掉所有其他的?
是否可以使用 vanilla Intellij 或某些插件 运行 仅输入单个测试数据?
否
让我们考虑在 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
而不需要注释掉所有其他的?
是否可以使用 vanilla Intellij 或某些插件 运行 仅输入单个测试数据?
否