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

How to view the summary of test feature report for pytest-bdd?.

Open CuriousQA opened this issue 5 years ago • 6 comments
trafficstars

Can you please help/guide me to know how will the pytest-bdd report produce an output in summary(similar to or like in cucumber). The main info I am looking for is to show the scenarios, and count for passed/failed etc as highlighted in green in the below. image

However, this is what I see when I run the command "pytest " 3 passed, 18 deselected, 5 warnings in 4.41s

CuriousQA avatar Apr 27 '20 23:04 CuriousQA

I can recommend you to look on pytest-html and screenshot and of course Junit .xml report can be generated by pytest for your CI test result parser.

v-buriak avatar Apr 28 '20 09:04 v-buriak

Thanks @v-buriak for the reply. I did check on pytest-html report. The report is pretty good itself. However, it doesn't give me details about the feature wise/scenarios that were passed/failed. So wondering if we have any report/ method to get that summary count.

CuriousQA avatar Apr 28 '20 13:04 CuriousQA

Using tags I divided my runs into features. Each job is creating report for particular feature. This also allows me to run many features in parallel in different Docker containers.

Vic152 avatar May 01 '20 08:05 Vic152

Thanks @Vic152 for the reply. I've around 35 feature files that are individually tagged by their feature names. It will be tedious to run those individually. Also I need the report to be consolidated in a single html file. If I run the jobs individually, I need to get summary of these individual runs to a single consolidated report. So I was checking for any decent options on displaying the summary for all the feature files in the report.

CuriousQA avatar May 01 '20 14:05 CuriousQA

Hi @CuriousQA,

If you use some CI to run your tests you can check on the plugin https://plugins.jenkins.io/cucumber-reports/.

I'm looking for how to run the tests in parallel mode yet.

Regards

robsonpolicarpo avatar May 17 '20 13:05 robsonpolicarpo

Can you please help/guide me to know how will the pytest-bdd report produce an output in summary(similar to or like in cucumber). The main info I am looking for is to show the scenarios, and count for passed/failed etc as highlighted in green in the below. image

However, this is what I see when I run the command "pytest " 3 passed, 18 deselected, 5 warnings in 4.41s

Did you find the solution?

Ostapp avatar Aug 02 '21 18:08 Ostapp