Commit 6f205fb7 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Bug fix in test runner.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@628 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent a340846d
...@@ -127,13 +127,13 @@ class NeoTestResult(unittest.TestResult): ...@@ -127,13 +127,13 @@ class NeoTestResult(unittest.TestResult):
s += '\n' s += '\n'
s += " Test Module | run | error | fail | time \n" s += " Test Module | run | error | fail | time \n"
s += "-------------------------------+--------+--------+--------+----------\n" s += "-------------------------------+--------+--------+--------+----------\n"
format = "%30s | %3d | %3d | %3d | %6.2fs \n" format = "%30s | %3d | %3s | %3s | %6.2fs \n"
for k, v in self.modulesStats.items(): for k, v in self.modulesStats.items():
args = (k, v.success, v.errors, v.failures, v.time) args = (k, v.success, v.errors, v.failures, v.time)
s += format % args s += format % args
s += "-------------------------------+--------+--------+--------+----------\n"
errors, failures = len(self.errors) or '.', len(self.failures) or '.' errors, failures = len(self.errors) or '.', len(self.failures) or '.'
args = ("Summary", self.testsRun, errors, failures, self.time) args = ("Summary", self.testsRun, errors, failures, self.time)
s += "-------------------------------+--------+--------+--------+----------\n"
s += format % args s += format % args
s += '\n' s += '\n'
return s return s
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment