pytest-bdd icon indicating copy to clipboard operation
pytest-bdd copied to clipboard

Rule keyword

Open Poogles opened this issue 3 years ago • 4 comments
trafficstars

It'd be nice to have support for the Rule keyword and update for Background to support rule level declarations. Has anyone started on this?

For now global declarations of Rule at the top level are just treated as part of the feature description and passed through which is fine, but things break down when multiple rules are used to split a feature into it different scopes.

Poogles avatar Mar 17 '22 13:03 Poogles

Looks like this is already represented as a goal in #394

rgilton avatar Apr 10 '22 20:04 rgilton

@youtux could you please review the approach in elchupanebrej/pytest-bdd#32

With official parser and model provided by that tool we could provide additional level of integrability for pytest-bdd

elchupanebrej avatar Apr 20 '22 16:04 elchupanebrej

Fork https://github.com/elchupanebrej/pytest-bdd-ng could be useful. It supports Gherkin>=19

elchupanebrej avatar Jul 24 '22 00:07 elchupanebrej

+1

Vic152 avatar Nov 28 '23 11:11 Vic152