【问题标题】:cucumber grails - feature with unimplemented steps still passescucumber grails - 具有未实现步骤的功能仍然通过
【发布时间】:2013-05-07 01:37:34
【问题描述】:

我最近开始尝试使用 Cucumber 和 grails 进行 BDD。我正在学习黄瓜食谱书中的教程,并创建了一个功能,但尚未创建步骤定义来实现测试。

  Feature: Furious Fowl Game
    @integration
    Scenario: New Game
      Given: I see 3 buildings
      When: I slingshot a bird
      Then: I should see 2 buildings

当我运行grails test-app :cucumber 时,我期望测试失败表明步骤尚未执行,但测试结果是成功:

Furious Fowl Game
A single test executed without a single error or failure! 
System output

Feature: Furious Fowl Game
  Scenario: New Game # Game.feature:4
    Given: I see 3 buildings
    When: I slingshot a bird
    Then: I should see 2 buildings

我确信这可能是显而易见的,但我很难过。如果您需要查看我上面未包含的任何内容,请告诉我。

【问题讨论】:

  • Grails – 版本 2.2.2 Cucumber 插件 – 0.6.0

标签: grails cucumber bdd cucumber-jvm


【解决方案1】:

看起来这只是 grails cucumber 插件的版本。

根据插件的changelog 0.7.0 添加了处理待处理步骤并将它们报告为错误,因此已更新到 0.8.0。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-16
    • 1970-01-01
    • 2018-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多