Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Add "Pringles" style note for using Rule keyword in Gherkin #561

Open
@luke-hill

Description

@luke-hill

Once you pop you just can't stop.

When using a Rule keyword in Gherkin, you cannot then "un-use" it, i.e. the following is not semantically possible (Nor will it ever likely be).

Feature: A
  Background:
    Given whatever
  Rule: One
    # many scenarios
  Rule: Two
    # many scenarios
  Scenario: Standalone Scenario

A User should either make the Standalone scenario part of a new Rule and call it Rule: Other stuff or alternatively alter the structure of their gherkin document like so

Feature: A
  Background:
    Given whatever
  Scenario: Standalone Scenario
  Rule: One
    # many scenarios
  Rule: Two
    # many scenarios

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions