projects
/
pyutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eeb1573
)
Adds timer next to progress bar in run_tests.py.
author
Scott Gasch
<
[email protected]
>
Tue, 18 Oct 2022 17:16:28 +0000
(10:16 -0700)
committer
Scott Gasch
<
[email protected]
>
Tue, 18 Oct 2022 17:16:28 +0000
(10:16 -0700)
tests/run_tests.py
patch
|
blob
|
history
diff --git
a/tests/run_tests.py
b/tests/run_tests.py
index 5806c340f57cc4f6a1873d19546b90b201eceaf1..3b74ccb8cd6a3aa9d008e262b849b21938e72965 100755
(executable)
--- a/
tests/run_tests.py
+++ b/
tests/run_tests.py
@@
-121,7
+121,7
@@
class TestResults:
out += '\n'
if len(self.tests_timed_out) > 0:
out += '\n'
if len(self.tests_timed_out) > 0:
- out += f' ..{ansi.fg("yellow")}'
+ out += f' ..{ansi.fg("
lightning
yellow")}'
out += f'{len(self.tests_timed_out)} tests timed out'
out += f'{ansi.reset()}:\n'
for test in self.tests_failed:
out += f'{len(self.tests_timed_out)} tests timed out'
out += f'{ansi.reset()}:\n'
for test in self.tests_failed:
@@
-588,13
+588,14
@@
def main() -> Optional[int]:
done,
started,
text=text_utils.BarGraphText.FRACTION,
done,
started,
text=text_utils.BarGraphText.FRACTION,
- width=
80
,
+ width=
72
,
fgcolor=color,
),
fgcolor=color,
),
- end='
\r
',
+ end='',
flush=True,
)
flush=True,
)
- time.sleep(0.5)
+ print(f' {color}{now - start_time:.1f}s{ansi.reset()}', end='\r')
+ time.sleep(0.1)
print(f'{ansi.clear_line()}Final Report:')
if config.config['coverage']:
print(f'{ansi.clear_line()}Final Report:')
if config.config['coverage']: