~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 05:16:22 UTC
  • mto: (1713.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1714.
  • Revision ID: robertc@robertcollins.net-20060516051622-807a8bbda673f4ee
'bzr selftest --benchmark' will run a new benchmarking selftest.
(Robert Collins, Martin Pool).

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
            TestOptions.current_test = None
78
78
            TestCaseInTempDir.TEST_ROOT = old_root
79
79
 
 
80
    def test_benchmark_runs_no_tests(self):
 
81
        """bzr selftest --benchmark should not run the default test suite."""
 
82
        # We test this via checking that no tests are run because the
 
83
        # benchmark suite is currently empty.
 
84
        out, err = self.run_bzr('selftest', '--benchmark')
 
85
        self.assertContainsRe(out, 'Ran 0 tests.*\n\nOK')
 
86
        self.assertEqual(
 
87
            'running tests...\nRunning tests: .\nCleaning up: .\ntests passed\n',
 
88
            err)
 
89
        
80
90
 
81
91
class TestRunBzr(ExternalBase):
82
92