We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0500d14 + dae2eb5 commit bc70d8aCopy full SHA for bc70d8a
pytest_reportportal/plugin.py
@@ -1,7 +1,11 @@
1
-import pytest
2
# This program is free software: you can redistribute it
3
# and/or modify it under the terms of the GPL licence
+
4
import logging
5
+import cgi
6
7
+import pytest
8
9
from .service import PyTestService
10
11
@@ -17,6 +21,10 @@ class RP_Report_Listener(object):
17
21
@pytest.mark.hookwrapper
18
22
def pytest_runtest_makereport(self, item, call):
19
23
report = (yield).get_result()
24
25
+ if report.longrepr:
26
+ PyTestService.post_log(cgi.escape(report.longreprtext), logging.ERROR)
27
20
28
if report.when == "setup":
29
30
# when function pytest_setup is called,
0 commit comments