Sha256: da7ceec123e934424c664c0d89f75bceba0100eb77e81edde56164cdaf574f00

Contents?: true

Size: 1.32 KB

Versions: 6

Compression:

Stored size: 1.32 KB

Contents

Feature: Skip Scenario

  Scenario: With a passing step
    Given a file named "features/test.feature" with:
      """
      Feature: test
        Scenario: test
          Given this step says to skip
          And this step passes
      """
    And the standard step definitions
    And a file named "features/step_definitions/skippy.rb" with:
      """
      Given /skip/ do
        skip_this_scenario
      end
      """
    When I run `cucumber -q`
    Then it should pass with exactly:
      """
      Feature: test

        Scenario: test
          Given this step says to skip
          And this step passes

      1 scenario (1 skipped)
      2 steps (2 skipped)
      0m0.012s

      """

  Scenario: Use legacy API from a hook
    Given a file named "features/test.feature" with:
      """
      Feature: test
        Scenario: test
          Given this step passes
          And this step passes
      """
    And the standard step definitions
    And a file named "features/support/hook.rb" with:
      """
      Before do |scenario|
        scenario.skip_invoke!
      end
      """
    When I run `cucumber -q`
    Then it should pass with:
      """
      Feature: test

        Scenario: test
          Given this step passes
          And this step passes

      1 scenario (1 skipped)
      2 steps (2 skipped)
      0m0.012s

      """

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cucumber-2.0.0 features/docs/defining_steps/skip_scenario.feature
cucumber-2.0.0.rc.5 features/docs/defining_steps/skip_scenario.feature
cucumber-2.0.0.rc.4 features/docs/defining_steps/skip_scenario.feature
cucumber-2.0.0.rc.3 features/docs/defining_steps/skip_scenario.feature
cucumber-2.0.0.rc.2 features/docs/defining_steps/skip_scenario.feature
cucumber-2.0.0.rc.1 features/docs/defining_steps/skip_scenario.feature