402
402
self.pb.update('[test 0/%d] starting...' % (self.num_tests))
404
404
def _progress_prefix_text(self):
405
a = '[%d' % self.count
405
# the longer this text, the less space we have to show the test
407
a = '[%d' % self.count # total that have been run
408
# tests skipped as known not to be relevant are not important enough
410
## if self.skip_count:
411
## a += ', %d skip' % self.skip_count
412
## if self.known_failure_count:
413
## a += '+%dX' % self.known_failure_count
406
414
if self.num_tests is not None:
407
415
a +='/%d' % self.num_tests
408
a += ' in %ds' % (time.time() - self._overall_start_time)
417
runtime = time.time() - self._overall_start_time
419
a += '%dm%ds' % (runtime / 60, runtime % 60)
409
422
if self.error_count:
410
a += ', %d errors' % self.error_count
423
a += ', %d err' % self.error_count
411
424
if self.failure_count:
412
a += ', %d failed' % self.failure_count
413
if self.known_failure_count:
414
a += ', %d known failures' % self.known_failure_count
416
a += ', %d skipped' % self.skip_count
425
a += ', %d fail' % self.failure_count
417
426
if self.unsupported:
418
a += ', %d missing features' % len(self.unsupported)
427
a += ', %d missing' % len(self.unsupported)