pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.31k stars 221 forks source link

Rule keyword #511

Closed Poogles closed 5 days ago

Poogles commented 2 years ago

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.

rgilton commented 2 years ago

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

elchupanebrej commented 2 years ago

@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 commented 2 years ago

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

Vic152 commented 11 months ago

+1