allure-python icon indicating copy to clipboard operation
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

Open python-zys opened this issue 3 years ago • 0 comments

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: image Allure display: image Expect result: The error message for the tear-down should display in the overview Environment: Pytest: 7.0.1 allure-pytest: 2.10.0

python-zys avatar Aug 23 '22 05:08 python-zys