Skip to content

Commit 570a119

Browse files
committed
Add execution info for non-Exception scenario
1 parent 5e7bc86 commit 570a119

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

allure-pytest/src/listener.py

+5
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ def pytest_runtest_makereport(self, item, call):
180180
and not (call.excinfo.errisinstance(AssertionError)
181181
or call.excinfo.errisinstance(pytest.fail.Exception))):
182182
status = Status.BROKEN
183+
else:
184+
if report.longrepr:
185+
status_details = StatusDetails(
186+
message="Test Execution Details",
187+
trace=escape_non_unicode_symbols(report.longreprtext))
183188

184189
if status == Status.PASSED and hasattr(report, 'wasxfail'):
185190
reason = report.wasxfail

0 commit comments

Comments
 (0)