【发布时间】: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