Commit 3de23fc2 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix runner output, tests cases where not grouped propely.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1003 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 8af180d6
......@@ -185,13 +185,6 @@ class NeoTestRunner(unittest.TestResult):
t_success = 0
# for each test case
for k, v in sorted(self.modulesStats.items()):
# test case stats
t_success += v.success
run, success = v.run or '.', v.success or '.'
errors, failures = v.errors or '.', v.failures or '.'
name = k[-1].lstrip('test')
args = (name, run, success, errors, failures, v.time)
s += format % args
# display group below its content
_group = '.'.join(k[:-1])
if group is None:
......@@ -199,6 +192,13 @@ class NeoTestRunner(unittest.TestResult):
if _group != group:
s += separator + group_f % group + separator
group = _group
# test case stats
t_success += v.success
run, success = v.run or '.', v.success or '.'
errors, failures = v.errors or '.', v.failures or '.'
name = k[-1].lstrip('test')
args = (name, run, success, errors, failures, v.time)
s += format % args
# the last group
s += separator + group_f % group + separator
# the final summary
......
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