~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_selftest.py

  • Committer: Robert Collins
  • Date: 2006-05-16 06:45:43 UTC
  • mto: (1713.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1714.
  • Revision ID: robertc@robertcollins.net-20060516064543-5cb7cc63047ba98b
Start on bench_add, an add benchtest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
            'running tests...\nRunning tests: .\nCleaning up: .\ntests passed\n',
88
88
            err)
89
89
        
 
90
    def test_benchmark_runs_no_tests(self):
 
91
        """bzr selftest --benchmark should display useful statistics."""
 
92
        # We test this via checking that no tests are run because the
 
93
        # benchmark suite is currently empty.
 
94
        out, err = self.run_bzr('selftest', '--benchmark')
 
95
        self.assertContainsRe(out, 'Ran 0 tests.*\n\nOK')
 
96
        self.assertEqual(
 
97
            'running tests...\nRunning tests: .\nCleaning up: .\ntests passed\n',
 
98
            err)
 
99
 
90
100
 
91
101
class TestRunBzr(ExternalBase):
92
102