Sha256: fa8cb810e77f419199716a92f6858d804fa6b5de77da7375d5a9ffb5332596b9

Contents?: true

Size: 1.71 KB

Versions: 117

Compression:

Stored size: 1.71 KB

Contents

Feature: --expand option
  In order to make it easier to writhe certain editor plugins
  and also for some people to understand scenarios, Cucumber
  should expand examples in outlines.

  Background:
    Given a standard Cucumber project directory structure
    And a file named "features/expand_me.feature" with:
      """
      Feature: submit guess

        Background: 
          Given the players' names:
            | maker    | breaker   |
            | Moriarty | Holmes    |
 
        Scenario Outline: submit guess
          Given the secret code is <code>
          When I guess <guess>
          Then the mark should be <mark>

        Examples: all colors correct
          | code    | guess   | mark |
          | r g y c | r g y c | bbbb |
          | r g y c | r g c y | bbww |
      """

  Scenario: Expand the outline
    When I run cucumber -i -q --expand features/expand_me.feature
    Then STDERR should be empty
    And it should pass with
      """
      Feature: submit guess

        Background: 
          Given the players' names:
            | maker    | breaker |
            | Moriarty | Holmes  |

        Scenario Outline: submit guess
          Given the secret code is <code>
          When I guess <guess>
          Then the mark should be <mark>

          Examples: all colors correct

            Scenario: | r g y c | r g y c | bbbb |
              Given the secret code is r g y c
              When I guess r g y c
              Then the mark should be bbbb

            Scenario: | r g y c | r g c y | bbww |
              Given the secret code is r g y c
              When I guess r g c y
              Then the mark should be bbww

      2 scenarios (2 undefined)
      8 steps (8 undefined)
      
      """

Version data entries

117 entries across 115 versions & 15 rubygems

Version Path
cucumber-1.3.20 legacy_features/expand.feature
cucumber-1.3.19 legacy_features/expand.feature
cucumber-1.3.18 legacy_features/expand.feature
cucumber-1.3.17 legacy_features/expand.feature
cucumber-1.3.16 legacy_features/expand.feature
cucumber-1.3.15 legacy_features/expand.feature
cucumber-1.3.14 legacy_features/expand.feature
cucumber-1.3.13 legacy_features/expand.feature
cucumber-1.3.12 legacy_features/expand.feature
cucumber-1.3.11 legacy_features/expand.feature
cucumber-1.3.10 legacy_features/expand.feature
cucumber-1.3.9 legacy_features/expand.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/legacy_features/expand.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/legacy_features/expand.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/legacy_features/expand.feature
cucumber-1.3.8 legacy_features/expand.feature
cucumber-1.3.7 legacy_features/expand.feature
cucumber-1.3.6 legacy_features/expand.feature
cucumber-1.3.5 legacy_features/expand.feature
cucumber-1.3.4 legacy_features/expand.feature