【问题标题】:Run single test data entry in Intellij in Spock在 Spock 中的 Intellij 中运行单个测试数据条目
【发布时间】: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


【解决方案1】:

是否可以使用 vanilla Intellij 或某些插件来运行单个测试数据输入?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-07-23
    • 1970-01-01
    • 2012-05-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-05
    相关资源
    最近更新 更多