allure-framework / allure-python

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

There is no log for failed cases with allure-pytest-bdd #667

Closed 229max closed 7 months ago

229max commented 2 years ago

I'm submitting a ...

What is the current behavior?

for pytest-bdd, the allure-pytest-bdd can't see the log for failed cases

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

there should be log attachment for the failed cases.

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

delatrie commented 1 year ago

This is a missing feature. Allure-pytest-bdd doesn't automatically attach anything right now. We should probably refer to allure-pytest while implementing this i.e., attach stdout, stderr and logs always, regardless of test result status.

See my feedback on your PR (and thank you for it, btw!)

delatrie commented 7 months ago

Implemented in allure-behave 2.13.4