使用黄瓜停用功能

roa*_*242 2 ruby-on-rails cucumber

我想在运行所有黄瓜功能排除一个已经写好的功能.

为什么? 因为该功能已经实现(bdd),但我现在没有时间实现它,但我不想放松它.

非常感谢任何帮助.

代码示例:

@shallbeexcluded
Feature: Exclude me
  In order to learn more
  As an stack overflow user
  I want to find more information

  Scenario: Find what I'm looking for
    Given I open the Google search page in my browser
    When I search for "rspec"
    Then I should see a link to http://rspec.info/
Run Code Online (Sandbox Code Playgroud)

hgm*_*mnz 7

黄瓜中有一个内置标签:( @wip对于正在进行的工作,受到看板原则的启发)

要运行正在进行中的功能(标记为@wip):

rake cucumber:wip
Run Code Online (Sandbox Code Playgroud)

要运行其他功能(未标记为@wip):

rake cucumber:ok
Run Code Online (Sandbox Code Playgroud)

这在http://wiki.github.com/aslakhellesoy/cucumber/cucumber-backgrounder上进行了简要讨论.