[Pkg-bazaar-commits] ./bzr/unstable r733: - show test names while running

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:20:52 UTC 2009


------------------------------------------------------------
revno: 733
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-22 16:23:07 +1000
message:
  - show test names while running
modified:
  bzrlib/selftest/__init__.py
-------------- next part --------------
=== modified file 'bzrlib/selftest/__init__.py'
--- a/bzrlib/selftest/__init__.py	2005-06-22 06:18:20 +0000
+++ b/bzrlib/selftest/__init__.py	2005-06-22 06:23:07 +0000
@@ -121,17 +121,26 @@
 
     No special behaviour for now.
     """
-#     def startTest(self, test):
-#         print str(test).ljust(50),
-#         TestResult.startTest(self, test)
-
-#     def stopTest(self, test):
-#         print
-#         TestResult.stopTest(self, test)
-
-
-    pass
-
+    def startTest(self, test):
+        print str(test).ljust(60),
+        TestResult.startTest(self, test)
+
+    def stopTest(self, test):
+        # print
+        TestResult.stopTest(self, test)
+
+
+    def addError(self, test, err):
+        print 'ERROR'
+        TestResult.addError(self, test, err)
+
+    def addFailure(self, test, err):
+        print 'FAILURE'
+        TestResult.addFailure(self, test, err)
+
+    def addSuccess(self, test):
+        print 'OK'
+        TestResult.addSuccess(self, test)
 
 
 



More information about the Pkg-bazaar-commits mailing list