Sha256: e4a7aed3ba50e442e39438f70bc931ca226ee45c0c933db33f731f83e545cd48

Contents?: true

Size: 1.25 KB

Versions: 25

Compression:

Stored size: 1.25 KB

Contents

Feature: Scenario outlines --expand option

  In order to make it easier to write certain editor plugins and also
  for some people to understand scenarios, Cucumber will expand examples
  in outlines if you add the `--expand` option when running them.

  Scenario:
    Given a file named "features/test.feature" with:
      """
      Feature:
        Scenario Outline:
          Given the secret code is <code>
          When I guess <guess>
          Then I am <verdict>

        Examples:
          | code | guess | verdict |
          | blue | blue  | right   |
          | red  | blue  | wrong   |
      """
    When I run `cucumber -i -q --expand`
    Then the stderr should not contain anything
    And it should pass with:
      """
      Feature: 

        Scenario Outline: 
          Given the secret code is <code>
          When I guess <guess>
          Then I am <verdict>

          Examples: 

            Scenario: | blue | blue | right |
              Given the secret code is blue
              When I guess blue
              Then I am right

            Scenario: | red | blue | wrong |
              Given the secret code is red
              When I guess blue
              Then I am wrong

      2 scenarios (2 undefined)
      6 steps (6 undefined)
      """

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
cucumber-2.99.0 features/docs/gherkin/expand_option_for_outlines.feature
mobiusloop-0.1.5 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-3.0.0.pre.1 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.4.0 features/docs/gherkin/expand_option_for_outlines.feature
mobiusloop-0.1.3 features/docs/gherkin/expand_option_for_outlines.feature
mobiusloop-0.1.2 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.3.3 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.3.2 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.3.1 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.3.0 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.2.0 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.1.0 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.2 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.1 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.0 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.0.rc.5 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.0.rc.4 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.0.rc.3 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.0.rc.2 features/docs/gherkin/expand_option_for_outlines.feature
cucumber-2.0.0.rc.1 features/docs/gherkin/expand_option_for_outlines.feature