pytest-bdd
pytest-bdd copied to clipboard
Documentation request: pytest-bdd execution explanation
trafficstars
I found the docs helpful for describing the different components within the framework - like feature files, step definitions, scenario decorators, etc. - but not for explaining how they work together.
What exactly happens when you run pytest with pytest-bdd?
At a high level, I imagine it goes something like this:
- Scan for feature files
- Create list of scenarios and step definitions from feature files
- Scan for scenario and step definitions
- Create list of scenario/step definitions
- For each step in each scenario, try to find a step definition and execute if found
I wonder if adding a brief section describing how it the framework executes might help clarify how it is meant to be used.