Skip to content

Commit ea24212

Browse files
committed
test: a utility print for when reporting tests fail
1 parent 89528f3 commit ea24212

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/coveragetest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def get_report(self, cov, squeeze=True, **kwargs):
8989
kwargs.setdefault("show_missing", False)
9090
cov.report(file=repout, **kwargs)
9191
report = repout.getvalue().replace('\\', '/')
92+
print(report) # When tests fail, it's helpful to see the output
9293
if squeeze:
9394
report = re.sub(r" +", " ", report)
9495
return report

0 commit comments

Comments
 (0)