Sha256: 23487ff92935ddd748866e90ac0bef9ea6f56abe182b523571a98ec41ea8b2fb

Contents?: true

Size: 1.46 KB

Versions: 65

Compression:

Stored size: 1.46 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 STDERR should be empty
    And 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

65 entries across 65 versions & 9 rubygems

Version Path
square-cucumber-0.3.12.2 features/expand.feature
square-cucumber-0.3.93.1.1 features/expand.feature
square-cucumber-0.3.93.1 features/expand.feature
squirrel-cucumber-0.3.12.1 features/expand.feature
squirrel-cucumber-0.3.12 features/expand.feature
cucumber-0.4.3 features/expand.feature
cucumber-0.4.2 features/expand.feature
cucumber-0.4.1 features/expand.feature
cucumber-0.4.0 features/expand.feature
cucumber-0.4.0.rc1 features/expand.feature
cucumber-0.3.104 features/expand.feature
cucumber-0.3.103 features/expand.feature
cucumber-0.3.102 features/expand.feature
cucumber-0.3.101 features/expand.feature
cucumber-0.3.100 features/expand.feature
cucumber-0.3.99 features/expand.feature
cucumber-0.3.98 features/expand.feature
cucumber-0.3.97 features/expand.feature
cucumber-0.3.96 features/expand.feature
cucumber-0.3.95 features/expand.feature