Sha256: 6ea3c513c08e63384a4b783ee2783c018923f42e253852e193fd03aea784193e

Contents?: true

Size: 822 Bytes

Versions: 28

Compression:

Stored size: 822 Bytes

Contents

Feature: Choosing the language from the feature file header

  In order to simplify command line and settings in IDEs, Cucumber picks
  up the parser language from a `# language` comment at the beginning of
  any feature file. See the examples below for the exact syntax.

  Scenario: LOLCAT
    Given a file named "features/lolcat.feature" with:
      """
      # language: en-lol
      OH HAI: STUFFING
        B4: HUNGRY
          I CAN HAZ EMPTY BELLY
        MISHUN: CUKES
          DEN KTHXBAI
      """
    When I run `cucumber -i features/lolcat.feature -q`
    Then it should pass with:
      """
      # language: en-lol
      OH HAI: STUFFING

        B4: HUNGRY
          I CAN HAZ EMPTY BELLY

        MISHUN: CUKES
          DEN KTHXBAI

      1 scenario (1 undefined)
      2 steps (2 undefined)

      """

Version data entries

28 entries across 28 versions & 2 rubygems

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