pytest-dev / pytest-bdd

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

JSON Report not generating if first step is not implemented #721

Open Suladis opened 1 month ago

Suladis commented 1 month ago

I’ve been trying to figure out why the report JSON doesn’t generate if the first step of a scenario is not implemented. The issue doesn’t happen when any other step is not implemented but the first one and it generates a report if the second step or so on is not implemented. The error is correct for the step definition not being implemented. I tried tracing the error to see when the report is being generated and intercepting it in the call phase of testing but to no luck. I also tried utilizing the step error and before step hook but that didn’t help out. Any information on how I can approach?

jsa34 commented 1 month ago

I'll take a look this week and see if I can see what's happening

Suladis commented 1 month ago

Looking forward to it, are there any recommended workarounds that you’d recommend?