~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/__init__.py

  • Committer: Martin Pool
  • Date: 2005-07-22 23:31:09 UTC
  • Revision ID: mbp@sourcefrog.net-20050722233109-7b030502e5311685
- selftest is less verbose by default, and takes a -v option if you want it

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
MODULES_TO_TEST = []
21
21
MODULES_TO_DOCTEST = []
22
22
 
23
 
def selftest():
 
23
def selftest(verbose=False):
24
24
    from unittest import TestLoader, TestSuite
25
25
    import bzrlib, bzrlib.store, bzrlib.inventory, bzrlib.branch
26
26
    import bzrlib.osutils, bzrlib.commands, bzrlib.merge3, bzrlib.plugin
88
88
 
89
89
    suite.addTest(unittest.makeSuite(bzrlib.merge_core.MergeTest, 'test_'))
90
90
 
91
 
    return run_suite(suite, 'testbzr')
 
91
    return run_suite(suite, 'testbzr', verbose=verbose)
92
92
 
93
93
 
94
94