I am using pytest-bdd and want to generate a test report where the Given, When, Then steps are clearly shown and in the case of a failure, it shows you the error.
I have installed pytest-html
and successfully created a report but it doesn't support the Given, When, Then steps.
I have also tried outputting the report as json using the --cucumber-json
option but am unsure what I can do with that.
Allure reporting is another avenue I have explored but it requires extra decorations on steps which I would like to avoid, but maybe it is the best/only way.
Something similar to the robot framework test report for example would be a great start!
Use allure-pytest-bdd==2.8.10 plugin and generate allure reports.