Sha256: 84937ae0140056e66dfc528cc504ac71cf257b3421842cbeec3d94bb39b91706

Contents?: true

Size: 1.95 KB

Versions: 5

Compression:

Stored size: 1.95 KB

Contents

Feature: Feature output

  A feature model's string output is a Gherkin representation of itself.


  Scenario: Outputting a feature model
    Given the following gherkin:
      """
      @tag1@tag2
      @tag3
      Feature: A feature with everything it could have
      Including a description
      and then some.
      Background:
      Background
      description
      * a step
      |value1|
      * another step
      @scenario_tag
      Scenario:
      Scenario
      description
      * a step
      * another step
      \"\"\"
        some text
      \"\"\"
      @outline_tag
      Scenario Outline:
      Outline
      description
      * a step
      |value2|
      * another step
      \"\"\"
        some text
      \"\"\"
      @example_tag
      Examples:
      Example
      description
      |param|
      |value|
      """
    And a feature model based on that gherkin
      """
        @model = CukeModeler::Feature.new(<source_text>)
      """
    When the model is output as a string
      """
        @model.to_s
      """
    Then the following text is provided:
      """
      @tag1 @tag2 @tag3
      Feature: A feature with everything it could have

      Including a description
      and then some.

        Background:

        Background
        description

          * a step
            | value1 |
          * another step

        @scenario_tag
        Scenario:

        Scenario
        description

          * a step
          * another step
            \"\"\"
              some text
            \"\"\"

        @outline_tag
        Scenario Outline:

        Outline
        description

          * a step
            | value2 |
          * another step
            \"\"\"
              some text
            \"\"\"

        @example_tag
        Examples:

        Example
        description

          | param |
          | value |
      """

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cuke_modeler-1.0.4 testing/cucumber/features/modeling/feature_output.feature
cuke_modeler-1.0.3 testing/cucumber/features/modeling/feature_output.feature
cuke_modeler-1.0.2 testing/cucumber/features/modeling/feature_output.feature
cuke_modeler-1.0.1 features/modeling/feature_output.feature
cuke_modeler-1.0.0 features/modeling/feature_output.feature