diff --git a/allure-pytest/src/listener.py b/allure-pytest/src/listener.py index b7da35c8..9951918e 100644 --- a/allure-pytest/src/listener.py +++ b/allure-pytest/src/listener.py @@ -180,6 +180,11 @@ def pytest_runtest_makereport(self, item, call): and not (call.excinfo.errisinstance(AssertionError) or call.excinfo.errisinstance(pytest.fail.Exception))): status = Status.BROKEN + else: + if report.longrepr: + status_details = StatusDetails( + message="Test Execution Details", + trace=escape_non_unicode_symbols(report.longreprtext)) if status == Status.PASSED and hasattr(report, 'wasxfail'): reason = report.wasxfail