count selected tests

This commit is contained in:
Kristoffer Nordstroem 2018-11-30 13:19:02 +01:00 committed by Kristoffer Nordstroem
parent 4947eb85c0
commit 9f86e83478
1 changed files with 3 additions and 0 deletions

View File

@ -497,6 +497,7 @@ class TerminalReporter(object):
errors = len(self.stats.get("error", [])) errors = len(self.stats.get("error", []))
skipped = len(self.stats.get("skipped", [])) skipped = len(self.stats.get("skipped", []))
deselected = len(self.stats.get("deselected", [])) deselected = len(self.stats.get("deselected", []))
selected = self._numcollected - errors - skipped - deselected
if final: if final:
line = "collected " line = "collected "
else: else:
@ -510,6 +511,8 @@ class TerminalReporter(object):
line += " / %d deselected" % deselected line += " / %d deselected" % deselected
if skipped: if skipped:
line += " / %d skipped" % skipped line += " / %d skipped" % skipped
if self._numcollected > selected:
line += " / %d selected" % selected
if self.isatty: if self.isatty:
self.rewrite(line, bold=True, erase=True) self.rewrite(line, bold=True, erase=True)
if final: if final: