Commit a1ea8034 authored by Aurel's avatar Aurel

display all results for listbox's performances before doing assertion


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24775 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5de4c594
......@@ -211,9 +211,9 @@ class TestPerformance(ERP5TypeTestCase, LogInterceptor):
if PROFILE:
self.profile(self.bar_module.BarModule_viewBarList)
# check result
keys = view_result.keys()
keys.sort()
# first display results
i = 0
for key in keys:
module_value = view_result[key]
......@@ -226,7 +226,16 @@ class TestPerformance(ERP5TypeTestCase, LogInterceptor):
print "\ttic = %.4f < %.4f < %.4f" %(MIN_TIC, tic_value, MAX_TIC)
print "\tview = %.4f < %.4f < %.4f" %(min_view, module_value, max_view)
print
i += 1
# then check results
if DO_TEST:
i = 0
for key in keys:
module_value = view_result[key]
tic_value = tic_result[key]
add_value = add_result[key]
min_view = MIN_MODULE_VIEW + LISTBOX_COEF * i
max_view = MAX_MODULE_VIEW + LISTBOX_COEF * i
self.failUnless(min_view < module_value < max_view,
'View: %.4f < %.4f < %.4f' % (
min_view, module_value, max_view))
......
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