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

Documentation request: pytest-bdd execution explanation

Open benedictvh opened this issue 5 years ago • 0 comments
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:

  1. Scan for feature files
  2. Create list of scenarios and step definitions from feature files
  3. Scan for scenario and step definitions
  4. Create list of scenario/step definitions
  5. 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.

benedictvh avatar Mar 06 '20 17:03 benedictvh