Commit 24263768 authored by Mathieu Giraud's avatar Mathieu Giraud

src/should.py: bikeshed output, colors, spaces

parent cb5fc898
......@@ -420,10 +420,15 @@ class Stats():
s = '==> '
s += STATUS[status]
s += ' - '
s += ' '.join(['%s:%d' % (STATUS[key], len(val)) for (key, val) in self.items()] + ['total:%s' % self.total()])
s = color(STATUS_COLORS[status], s, colorize)
s += ' '.join([color(STATUS_COLORS[key], '%s:%d', colorize) % (STATUS[key], len(val)) for (key, val) in self.items()])
nb_items = '- total:%s' % self.total()
if self.item:
s += ' ' + self.item + ('s' if self.total() > 1 else '')
return color(STATUS_COLORS[status], s, colorize)
nb_items += ' ' + self.item + ('s' if self.total() > 1 else '')
s += ' ' + color(STATUS_COLORS[status], nb_items, colorize)
return s
......@@ -1036,10 +1041,12 @@ class FileSet():
if output and OUT_XML in output:
self.xml().write(OUT_XML)
print()
print('Summary', end=' ')
print(self.stats.str_status(self.status))
print('Summary', end=' ')
print(self.stats_tests.str_status(self.status))
print()
for sta in self.stats.keys():
if sta == True:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment