allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
719 stars 235 forks source link

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

Closed IvanBuruyane closed 5 months ago

IvanBuruyane commented 12 months ago

Context

[//]: # ( Describe the problem or feature in addition to a link to the issues ) 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:

example

Checklist

CLAassistant commented 12 months ago

CLA assistant check
All committers have signed the CLA.

IvanBuruyane commented 6 months ago

Is there anybody who can take a look at this PR? @veryhappythings @janza @middagj

delatrie commented 6 months ago

Hi, @IvanBuruyane !

Thank you for your contribution. That's a useful feature, but it should be covered with tests.

Please, add some tests. Here are links that might help you with that: