Commits

Ronny Pfannschmidt committed 02d2494

MOAR stats

Comments (0)

Files changed (1)

pytest_gui/gtkui/runstate.py

         executed = sum(len(x) for x in self.stats.values())
         stats = [
             '%s/%s executed' % (executed, len(self.test_ids)),
-            '%s passed' % len(self.stats.get('passed', ())),
         ]
-        if 'failed' in self.stats:
-            stats.append('%s failed' % len(self.stats['failed']))
+
+        for stat in ('passed', 'failed', 'skipped', 'xfailed', 'xpassed'):
+            if stat in self.stats:
+                stats.append(str(len(self.stats['failed'])))
+                stats.append(stat)
         self.run_stat_label.set_text(' '.join(stats))
         #XXX: update the ui
         pass