Skip to content

Commit

Permalink
Print a list of rerun tests. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Dec 19, 2020
1 parent 5011261 commit f54fa61
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gevent/testing/testrunner.py
Expand Up @@ -83,6 +83,7 @@ def __init__(self):
self.total_skipped = 0
# Every RunResult reported: failed, passed, rerun
self._all_results = []
self.reran = {}

def __iadd__(self, result):
self._all_results.append(result)
Expand All @@ -103,6 +104,7 @@ def __ilshift__(self, result):
the number of cases run, skipped, passed or failed.
"""
self._all_results.append(result)
self.reran[result.name] = result
return self

@property
Expand Down Expand Up @@ -671,6 +673,10 @@ def report(result_collector, # type: ResultCollector
util.log('\n%s/%s unexpected passes', len(passed_unexpected), total, color='error')
print_list(passed_unexpected)

if result_collector.reran:
util.log('\n%s/%s tests rerun', len(result_collector.reran), total, color='warning')
print_list(result_collector.reran)

if failed:
util.log('\n%s/%s tests failed%s', len(failed), total, took, color='warning')

Expand Down

0 comments on commit f54fa61

Please sign in to comment.