mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix test time reporting
This commit is contained in:
parent
6c9c141c3e
commit
82826db233
@ -54,7 +54,7 @@ def main():
|
|||||||
tests = get_matching_tests_for_name()
|
tests = get_matching_tests_for_name()
|
||||||
st = window.performance.now()
|
st = window.performance.now()
|
||||||
failed_tests, total = run_tests(tests)
|
failed_tests, total = run_tests(tests)
|
||||||
time = window.performance.now() - st
|
time = (window.performance.now() - st) / 1000
|
||||||
if failed_tests.length:
|
if failed_tests.length:
|
||||||
console.error(f'{failed_tests.length} out of {total} failed in {time:.1f} seconds')
|
console.error(f'{failed_tests.length} out of {total} failed in {time:.1f} seconds')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user