Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@delatrie delatrie linked an issue Mar 25, 2024 that may be closed by this pull request
1 task
@delatrie delatrie added the type:new feature Pull requests that introduce new features label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:pytest-bdd type:new feature Pull requests that introduce new features
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