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

Add logs, stdout and stderr to the allure-pytest-bdd report #801

Merged
merged 4 commits into from Mar 25, 2024

Conversation

IvanBuruyane
Copy link
Contributor

@IvanBuruyane IvanBuruyane commented Mar 19, 2024

Context

Currently allure report for the pytest-bdd framework doesn't include logs, stdout and stderr created during test run. It makes hard to understand what was the root cause of the test failure. In order to fix this I simply added the code from the allure-pytest listener that adds logs, stdout and stderr to the report. Here's a screenshot from the report with logs:

263251959-119d2b6f-0698-4d86-94fe-6529505b8047

Checklist

@CLAassistant
Copy link

CLAassistant commented Mar 19, 2024

CLA assistant check
All committers have signed the CLA.

@IvanBuruyane
Copy link
Contributor Author

@veryhappythings , @janza , @middagj. Please take a look at this MR. I've added some tests, plus I use the fork with this code for a long time on my project, and it works (you can see it on the screenshot). I would really appreciate if you approve this PR. Thanks beforehand.

Copy link
Contributor

@delatrie delatrie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A solid contribution, thank you!

@delatrie delatrie merged commit 097fcf6 into allure-framework:master Mar 25, 2024
12 checks passed
@delatrie delatrie linked an issue Mar 25, 2024 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There is no log for failed cases with allure-pytest-bdd
3 participants