You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Updating the docs stating "how" Rules should be used and how you should structure your feature files. To avoid this scenario where you can't "un-use" a rule.
I'll pop a PR in first, and tag you and some of the others. So long as we're happy with my analogy. Also I know we try to steer clear of "This is correct", and just say "This is incorrect", but in this instance I really think my 2 options are the "only" correct ones.
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).
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 soThe text was updated successfully, but these errors were encountered: