Skip to content

Commit

Permalink
Add execution info for non-Exception scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimedelreyg committed Feb 3, 2021
1 parent 5e7bc86 commit 570a119
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions allure-pytest/src/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 570a119

Please sign in to comment.