allure-python
allure-python copied to clipboard
The error message only has the error message for the setup and no error message for the teardown in the overview of allure report
code: `import pytest
@pytest.fixture(scope="function", autouse=True) def set_up(): print("Test set up start") raise Exception("set up failed") yield print("Test set up finish")
@pytest.fixture(scope="class", autouse=True) def tear_down(): print("Test tear down start") yield raise Exception("Tear down failed")
class TestAllure:
def test_allure(self):
print("test start")
assert 1 < 2
print("test finish")`
Test result:
Allure display:
Expect result:
The error message for the tear-down should display in the overview
Environment:
Pytest: 7.0.1
allure-pytest: 2.10.0