allure-python icon indicating copy to clipboard operation
allure-python copied to clipboard

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

Open 229max opened this issue 3 years ago • 1 comments

I'm submitting a ...

  • [ ] bug report

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:

  • pytest 6.2.5 pytest: simple powerful testing with Python
  • pytest-bdd 4.1.0 BDD for pytest
  • allure-pytest-bdd 2.9.45 Allure pytest-bdd integration
  • allure-python-commons 2.9.45 Common module for integrate allure with python-based frameworks

229max avatar Jun 29 '22 06:06 229max

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 avatar Jan 19 '23 10:01 delatrie

Implemented in allure-behave 2.13.4

delatrie avatar Mar 25 '24 12:03 delatrie