Commit 0587bef6 authored by Anna Kogan's avatar Anna Kogan

Switched time from seconds to minutes

parent 3cdfa654
...@@ -69,6 +69,7 @@ if __name__ == "__main__": ...@@ -69,6 +69,7 @@ if __name__ == "__main__":
groupName = next(c for c in cases if c).shortName() groupName = next(c for c in cases if c).shortName()
if groupName != prevGroupName: if groupName != prevGroupName:
if prevGroupName != None: if prevGroupName != None:
suit_time = suit_time/60 #from seconds to minutes
testsuits.append({'name': prevGroupName, 'time': suit_time, \ testsuits.append({'name': prevGroupName, 'time': suit_time, \
'num': suit_num, 'failed': fails_num}) 'num': suit_num, 'failed': fails_num})
overall_time += suit_time overall_time += suit_time
...@@ -97,7 +98,7 @@ if __name__ == "__main__": ...@@ -97,7 +98,7 @@ if __name__ == "__main__":
# header # header
tbl.newColumn('name', 'Testsuit', align = 'left', cssclass = 'col_name') tbl.newColumn('name', 'Testsuit', align = 'left', cssclass = 'col_name')
tbl.newColumn('time', 'Time (s)', align = 'center', cssclass = 'col_name') tbl.newColumn('time', 'Time (min)', align = 'center', cssclass = 'col_name')
tbl.newColumn('num', 'Num of tests', align = 'center', cssclass = 'col_name') tbl.newColumn('num', 'Num of tests', align = 'center', cssclass = 'col_name')
tbl.newColumn('failed', 'Failed', align = 'center', cssclass = 'col_name') tbl.newColumn('failed', 'Failed', align = 'center', cssclass = 'col_name')
...@@ -123,6 +124,6 @@ if __name__ == "__main__": ...@@ -123,6 +124,6 @@ if __name__ == "__main__":
splitter = 15 * '*' splitter = 15 * '*'
print '\n%s\n %s\n%s\n' % (splitter, module_name, splitter) print '\n%s\n %s\n%s\n' % (splitter, module_name, splitter)
print 'Overall time: %f\n' % overall_time print 'Overall time: %.2f min\n' % overall_time
tbl.consolePrintTable(sys.stdout) tbl.consolePrintTable(sys.stdout)
print 4 * '\n' print 4 * '\n'
\ No newline at end of file
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