We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6e15b commit 8a732a4Copy full SHA for 8a732a4
1 file changed
src/pytest_tap/plugin.py
@@ -216,9 +216,11 @@ def _make_as_raw_yaml_block(report):
216
lines = report.longrepr.reprcrash.message.splitlines(keepends=True)
217
except AttributeError:
218
lines = report.longreprtext.splitlines(keepends=True)
219
+ user_properties = getattr(report, "user_properties", [])
220
return f"""\
221
message: |
222
{"".join(f" {line}" for line in lines)}
223
severity: {report.outcome}
224
duration_ms: {report.duration * 1000}
225
+{'\n'.join(f"{k}: {v}" for k, v in user_properties)}
226
"""
0 commit comments