[Zope3-checkins] SVN: zope.testing/branches/colorized-output/src/zope/testing/testrunner.py Clarify the difference between OutputFormatter.summary() and .totals().

Marius Gedminas marius at pov.lt
Fri Jul 13 11:30:24 EDT 2007


Log message for revision 77870:
  Clarify the difference between OutputFormatter.summary() and .totals().
  
  

Changed:
  U   zope.testing/branches/colorized-output/src/zope/testing/testrunner.py

-=-
Modified: zope.testing/branches/colorized-output/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/branches/colorized-output/src/zope/testing/testrunner.py	2007-07-13 15:29:14 UTC (rev 77869)
+++ zope.testing/branches/colorized-output/src/zope/testing/testrunner.py	2007-07-13 15:30:23 UTC (rev 77870)
@@ -367,16 +367,16 @@
             for test in import_errors:
                 print "  " + test.module
 
+    def summary(self, n_tests, n_failures, n_errors, n_seconds):
+        """Summarize the results of a single test layer."""
+        print ("  Ran %s tests with %s failures and %s errors in %.3f seconds."
+               % (n_tests, n_failures, n_errors, n_seconds))
+
     def totals(self, n_tests, n_failures, n_errors):
-        """Report totals (number of tests, failures, and errors)."""
+        """Summarize the results of all layers."""
         print "Total: %s tests, %s failures, %s errors" % (
                         n_tests, n_failures, n_errors)
 
-    def summary(self, n_tests, n_failures, n_errors, n_seconds):
-        """Summarize the results."""
-        print ("  Ran %s tests with %s failures and %s errors in %.3f seconds."
-               % (n_tests, n_failures, n_errors, n_seconds))
-
     def list_of_tests(self, tests, layer_name):
         """Report a list of test names."""
         print "Listing %s tests:" % layer_name



More information about the Zope3-Checkins mailing list