allure-framework / allure-python

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

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

Closed IvanBuruyane closed 3 months ago

IvanBuruyane commented 3 months ago

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 commented 3 months ago

CLA assistant check
All committers have signed the CLA.

IvanBuruyane commented 3 months ago

@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.