mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 18:29:17 +00:00
update tests
This commit is contained in:
@@ -10,6 +10,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import subprocess
|
import subprocess
|
||||||
from concurrent import futures
|
from concurrent import futures
|
||||||
|
from halo import Halo
|
||||||
|
|
||||||
|
|
||||||
MAX_JOBS = 10
|
MAX_JOBS = 10
|
||||||
@@ -52,6 +53,9 @@ def main():
|
|||||||
|
|
||||||
tests = get_tests()
|
tests = get_tests()
|
||||||
|
|
||||||
|
print()
|
||||||
|
spinner = Halo(text='Testing', spinner='bouncingBall')
|
||||||
|
spinner.start()
|
||||||
with futures.ThreadPoolExecutor(max_workers=MAX_JOBS) as ex:
|
with futures.ThreadPoolExecutor(max_workers=MAX_JOBS) as ex:
|
||||||
wait_for = []
|
wait_for = []
|
||||||
for test in tests:
|
for test in tests:
|
||||||
@@ -68,10 +72,12 @@ def main():
|
|||||||
print(log)
|
print(log)
|
||||||
print('test {} failed ({})'.format(p, reason))
|
print('test {} failed ({})'.format(p, reason))
|
||||||
return False
|
return False
|
||||||
else:
|
#else:
|
||||||
sys.stdout.write('.')
|
# sys.stdout.write('.')
|
||||||
sys.stdout.flush()
|
# sys.stdout.flush()
|
||||||
sys.stdout.write('\n')
|
sys.stdout.write('\n')
|
||||||
|
spinner.stop()
|
||||||
|
print()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,3 +4,4 @@ coverage; python_version > '3.4'
|
|||||||
coveralls; python_version > '3.4'
|
coveralls; python_version > '3.4'
|
||||||
pyflakes; python_version > '3.4'
|
pyflakes; python_version > '3.4'
|
||||||
pylint; python_version > '3.4'
|
pylint; python_version > '3.4'
|
||||||
|
halo; python_version > '3.4'
|
||||||
|
|||||||
Reference in New Issue
Block a user