Sha256: 1177b58101bd33e47816d95ba636c93ce6cc350c20527b76ed81e000855b08af

Contents?: true

Size: 1.43 KB

Versions: 24

Compression:

Stored size: 1.43 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
        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 it should pass with
      """
      Feature: submit guess

        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)
      6 steps (6 undefined)
      
      """

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 features/expand.feature
aslakhellesoy-cucumber-0.3.11.1 features/expand.feature
aslakhellesoy-cucumber-0.3.11.3 features/expand.feature
aslakhellesoy-cucumber-0.3.11 features/expand.feature
aslakhellesoy-cucumber-0.3.7.1 features/expand.feature
aslakhellesoy-cucumber-0.3.7.2 features/expand.feature
aslakhellesoy-cucumber-0.3.7.3 features/expand.feature
aslakhellesoy-cucumber-0.3.7.4 features/expand.feature
aslakhellesoy-cucumber-0.3.7.5 features/expand.feature
aslakhellesoy-cucumber-0.3.7 features/expand.feature
aslakhellesoy-cucumber-0.3.8 features/expand.feature
aslakhellesoy-cucumber-0.3.9.1 features/expand.feature
aslakhellesoy-cucumber-0.3.9.2 features/expand.feature
aslakhellesoy-cucumber-0.3.9.3 features/expand.feature
aslakhellesoy-cucumber-0.3.9.4 features/expand.feature
aslakhellesoy-cucumber-0.3.9.5 features/expand.feature
aslakhellesoy-cucumber-0.3.9 features/expand.feature
kosmas58-cucumber-0.3.11.3 features/expand.feature
kosmas58-cucumber-0.3.9.4 features/expand.feature
cucumber-0.3.10 features/expand.feature