[Neo-report] r1776 gregory - /trunk/tools/runner
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 16 17:41:14 CET 2010
Author: gregory
Date: Tue Feb 16 17:41:08 2010
New Revision: 1776
Log:
Display inline test results in test runner.
Modified:
trunk/tools/runner
Modified: trunk/tools/runner
==============================================================================
--- trunk/tools/runner [iso-8859-1] (original)
+++ trunk/tools/runner [iso-8859-1] Tue Feb 16 17:41:08 2010
@@ -142,7 +142,9 @@
stats.time += time.time() - self.lastStart
def startTest(self, test):
- print ' *', test.__class__.__module__, test._TestCase__testMethodName
+ print ' * %s %s...' % (test.__class__.__module__,
+ test._TestCase__testMethodName),
+ sys.stdout.flush()
unittest.TestResult.startTest(self, test)
module = test.__class__.__name__
method = test._TestCase__testMethodName
@@ -152,18 +154,21 @@
self.lastStart = time.time()
def addSuccess(self, test):
+ print "OK"
unittest.TestResult.addSuccess(self, test)
stats = self._getModuleStats(test)
stats.success += 1
self._updateTimer(stats)
def addError(self, test, err):
+ print "ERROR"
unittest.TestResult.addError(self, test, err)
stats = self._getModuleStats(test)
stats.errors += 1
self._updateTimer(stats)
def addFailure(self, test, err):
+ print "FAIL"
unittest.TestResult.addFailure(self, test, err)
stats = self._getModuleStats(test)
stats.failures += 1
More information about the Neo-report
mailing list