[Pkg-bazaar-commits] ./bzr/unstable r744: - show nicer descriptions while running tests
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:54 UTC 2009
------------------------------------------------------------
revno: 744
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-22 17:27:35 +1000
message:
- show nicer descriptions while running tests
modified:
bzrlib/selftest/__init__.py
bzrlib/selftest/versioning.py
-------------- next part --------------
=== modified file 'bzrlib/selftest/__init__.py'
--- a/bzrlib/selftest/__init__.py 2005-06-22 07:18:36 +0000
+++ b/bzrlib/selftest/__init__.py 2005-06-22 07:27:35 +0000
@@ -122,7 +122,8 @@
No special behaviour for now.
"""
def startTest(self, test):
- print str(test).ljust(60),
+ # TODO: Maybe show test.shortDescription somewhere?
+ print '%-60.60s' % test.id(),
TestResult.startTest(self, test)
def stopTest(self, test):
@@ -157,6 +158,7 @@
_setup_test_log()
_setup_test_dir()
+ print
suite = TestSuite()
tl = TestLoader()
@@ -227,6 +229,9 @@
def _show_test_failure(kind, case, tb):
print (kind + '! ').ljust(60, '-')
print case
+ desc = test.shortDescription()
+ if desc:
+ print ' (%s)' % desc
print tb
print ''.ljust(60, '-')
=== modified file 'bzrlib/selftest/versioning.py'
--- a/bzrlib/selftest/versioning.py 2005-06-22 07:18:36 +0000
+++ b/bzrlib/selftest/versioning.py 2005-06-22 07:27:35 +0000
@@ -22,6 +22,7 @@
class Mkdir(InTempDir):
def runTest(self):
+ """Basic 'bzr mkdir' operation"""
from bzrlib.commands import run_bzr
import os
More information about the Pkg-bazaar-commits
mailing list