Closed unkind closed 2 years ago
I really want this feature, looking forward to reviewing it
This one still doesn't work: 'complex_background.feature' => 'Rule keyword not supported',
.
It turns out Scenario
and Scenario Outline
have the same node type in Cucumber:
Feature: Complex background
...
Rule: My Rule
Scenario: with examples
Given the <value> minimalism
Examples:
| value |
| 1 |
| 2 |
@pamil @stof we need to consider how Behat will adapt to this change. It'll impact tagging, running and a lot more.
We could do it in a minor version of behat/gherkin with BC layers, then Behat can do some conditional logic to see if the parser supports rules
We could do it in a major, expand Behat's supported versions, and have similar conditional logic
We could do it in a major and bump Behat's dependency overnight
I found inconsistency with https://github.com/cucumber/common:
Feature: Some rules
Background:
Given fb
Rule: A
The rule A description
Background:
Given ab
Example: Example A
Given a
That parser doesn't remove indentation of description:
"description":" The rule A description"
We can keep indentation data in FeatureNode
, RuleNode
, etc. and provide 2 methods: getDescription()
and getRawDescription()
.
Hi,
PR provides the
Rule
keyword support (https://cucumber.io/docs/gherkin/reference/#rule).