Skip to content

Commit

Permalink
Merge 7f4f814 into 9c6ec81
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunmudgal committed Sep 30, 2020
2 parents 9c6ec81 + 7f4f814 commit b6a226b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pytest_html_reporter/plugin.py
Expand Up @@ -327,16 +327,20 @@ def pytest_runtest_makereport(self, item, call):
self.increment_xfail()
self.update_test_status("xFAIL")
if rep.longrepr:
longerr = ""
for line in rep.longreprtext.splitlines():
exception = line.startswith("E ")
if exception:
self.update_test_error(line.replace("E ", ""))
longerr += line + "\n"
self.update_test_error(longerr.replace("E ", ""))
else:
self.increment_skip()
self.update_test_status("SKIP")
if rep.longrepr:
longerr = ""
for line in rep.longreprtext.splitlines():
self.update_test_error(line)
longerr += line + "\n"
self.update_test_error(longerr)

def append_test_metrics_row(self):
global _test_metrics_content, _pvalue
Expand Down

0 comments on commit b6a226b

Please sign in to comment.