~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-17 14:27:27 UTC
  • mfrom: (5425.3.2 verbose_test_count_576269)
  • Revision ID: pqm@pqm.ubuntu.com-20100917142727-49blehg006i4nc9n
(gz) Display the correct test count at the start when selftest is run in
 verbose mode (Martin [gz])

Show diffs side-by-side

added added

removed removed

Lines of Context:
471
471
        self.pb.finished()
472
472
        super(TextTestResult, self).stopTestRun()
473
473
 
474
 
    def startTestRun(self):
475
 
        super(TextTestResult, self).startTestRun()
 
474
    def report_tests_starting(self):
 
475
        super(TextTestResult, self).report_tests_starting()
476
476
        self.pb.update('[test 0/%d] Starting' % (self.num_tests))
477
477
 
478
478
    def _progress_prefix_text(self):
546
546
            result = a_string
547
547
        return result.ljust(final_width)
548
548
 
549
 
    def startTestRun(self):
550
 
        super(VerboseTestResult, self).startTestRun()
 
549
    def report_tests_starting(self):
551
550
        self.stream.write('running %d tests...\n' % self.num_tests)
 
551
        super(VerboseTestResult, self).report_tests_starting()
552
552
 
553
553
    def report_test_start(self, test):
554
554
        name = self._shortened_test_description(test)