Sha256: b39c0127a6c701d557250438ac159b1e23690a482f6251ac9e9a754e700a4925

Contents?: true

Size: 1.21 KB

Versions: 541

Compression:

Stored size: 1.21 KB

Contents

Feature: Gherkin Steps parser
  In order to save time and make my features clearer
  As a Cucumber developer
  I want a steps parser to make writing compound steps easier

  Background: 
    Given a "ruby" "steps" parser

  Scenario: Parsing steps
    Given the following text is parsed:
      """
      Given a one step
      And a two step
        \"\"\"
        Here is a multiline string
        That follows a step
        With an argument #{arg}
        \"\"\"
      And a one two three step
      When another step
      Then there should be a table
        | one | two | three  |
        | foo | bar | #{arg} |
      """
    Then there should be no parse errors

  Scenario: Trying to parse a full feature with the step parser
    Given the following text is parsed:
      """
      Feature: A Feature
        Scenario: Yes, there is one
          Given I have a step
          When I execute this step
          Then something should happen
      """
    Then there should be parse errors on lines 1 and 2

  Scenario: Tags
    Given the following text is parsed:
      """
      @a_tag
      Given a step
      When I trip
      Then I should sign up for dancing lessons
      """
    Then there should be a parse error on line 1

Version data entries

541 entries across 536 versions & 10 rubygems

Version Path
gherkin-2.12.2 features/steps_parser.feature
gherkin-2.12.2-x86-mswin32 features/steps_parser.feature
gherkin-2.12.2-x86-mingw32 features/steps_parser.feature
gherkin-2.12.2-java features/steps_parser.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/gherkin-2.11.1/features/steps_parser.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/gherkin-2.11.1/features/steps_parser.feature
candlepin-api-0.4.0 bundle/ruby/gems/gherkin-2.11.1/features/steps_parser.feature
gherkin-2.12.1 features/steps_parser.feature
gherkin-2.12.1-x86-mswin32 features/steps_parser.feature
gherkin-2.12.1-x86-mingw32 features/steps_parser.feature
gherkin-2.12.1-java features/steps_parser.feature
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/gherkin-2.11.6/features/steps_parser.feature
gherkin-2.12.0 features/steps_parser.feature
gherkin-2.12.0-x86-mingw32 features/steps_parser.feature
gherkin-2.12.0-x86-mswin32 features/steps_parser.feature
gherkin-2.12.0-java features/steps_parser.feature
gherkin-2.11.8 features/steps_parser.feature
gherkin-2.11.8-x86-mswin32 features/steps_parser.feature
gherkin-2.11.8-x86-mingw32 features/steps_parser.feature
gherkin-2.11.8-java features/steps_parser.feature