gherkin 6(JavaScript): differientiate between scenario and scenario outline #627
Labels
library: gherkin
❓ question
Consider using support forums: https://cucumber.io/tools/cucumber-open/support
Given a feature with a scenario:
And other with a scenario outline:
There is not an easy way to differentiate if the parsed scenario is outline or not.
Scenario:
Scenario Outline:
Motivation:
Differentiating between scenario types is necessary for gherkin-lint which applies rules over scenario outlines (
no-scenario-outlines-without-examples
rule) that are not applicable over simple scenarios.Possible Solution
As you can see, we can differentiate scenario types using keyword property. However, the keyword depends on the used language and we can't rely on that. gherkin@5 also exports a
DIALECTS
object that could be useful for get the scenario type based on scenario keyword. But I don't think it's the best solution.Could it be possible adding a type prop in scenarios for differentiating between scenario types?
Environment
The text was updated successfully, but these errors were encountered: