cucumber-rs / cucumber

Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.
https://cucumber-rs.github.io/cucumber/main
Apache License 2.0
563 stars 69 forks source link

Parsing error when starting a scenario with an And #291

Open cdmistman opened 1 year ago

cdmistman commented 1 year ago

in the openCypher TCK there exists a feature which contains scenarios that start with And steps. These And steps follow the Background Given to provide more complete scenarios.

AFAICT, the Gherkin reference doesn't say And steps must succeed a Given, When, or Then step, but cucumber-rs throws parsing errors when this happens. Perhaps to remediate this, cucumber-rs should allow for And steps at the beginning of a Scenario which are implied to extend the Background steps?

tyranron commented 1 year ago

@cdmistman makes sense.