count selected tests
This commit is contained in:
parent
4947eb85c0
commit
9f86e83478
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue