Skip to content

Commit

Permalink
Merge pull request #795 from eth-brownie/fix-skipped-output
Browse files Browse the repository at this point in the history
fix: colors for skipped tests that failed
  • Loading branch information
iamdefinitelyahuman authored Oct 6, 2020
2 parents 5f2f40e + 164c6ec commit 2042229
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions brownie/test/managers/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,13 @@ def pytest_runtest_logreport(self, report):

# save results for this test
results = self.results[path]
if report.when == "call":
results[idx] = convert_outcome(report.outcome)
if hasattr(report, "wasxfail"):
results[idx] = "x" if report.skipped else "X"
elif report.failed:
results[idx] = "E"
if not self.skip.get(report.nodeid):
if report.when == "call":
results[idx] = convert_outcome(report.outcome)
if hasattr(report, "wasxfail"):
results[idx] = "x" if report.skipped else "X"
elif report.failed:
results[idx] = "E"
if report.when != "teardown" or idx < len(self.node_map[path]) - 1:
return

Expand Down

0 comments on commit 2042229

Please sign in to comment.