Closed arthuRHD closed 2 years ago
There is no possibility to use a few background sections with one scenario. If you really need this feature please address this question to Cucumber community. This project highly relies on decisions about Gherkin language developed there
Gherkin doesn't support multiple backgrounds on the feature level https://cucumber.io/docs/gherkin/reference/#background However it introduces new feature of Rules. Will have to have a look into that.
No matter what filltering is applied, It's always the latest "Background" key work that gets collected. I would like to know how the pytest marks is used when collecting tests specified inside the feature file.
Concrete example :
When i'm launching with
pytest -m foo
the value bar is selected