Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CuriousQA opened this issue Apr 27, 2020 · 6 comments
Open

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

CuriousQA opened this issue Apr 27, 2020 · 6 comments

Comments

@CuriousQA
Copy link

CuriousQA commented Apr 27, 2020

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

@v-buriak
Copy link
Contributor

v-buriak commented Apr 28, 2020

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.

@CuriousQA
Copy link
Author

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.

@Vic152
Copy link

Vic152 commented May 1, 2020

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.

@CuriousQA
Copy link
Author

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.

@robsonpolicarpo
Copy link

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

@Ostapp
Copy link

Ostapp commented Aug 2, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants