From 02b80bf2f8582fde21dc5ac824e3e1ceb71e37d0 Mon Sep 17 00:00:00 2001 From: Vitaly Protasov Date: Thu, 16 Jul 2020 17:52:31 +0300 Subject: [PATCH] added progress bar --- test/integration/all.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/all.py b/test/integration/all.py index 9f81be3b..1e07e28d 100644 --- a/test/integration/all.py +++ b/test/integration/all.py @@ -1,14 +1,18 @@ import os import sys from aibolit.config import Config +import time +import tqdm # TODO: fix all errors in the patterns/metrics and make these lists empty EXCLUDE_PATTERNS = ['P31', 'P32'] EXCLUDE_METRICS = [] current_path: str = os.path.dirname(os.path.realpath(__file__)) -for filename in os.listdir(current_path + '/samples'): +print('Progress of samples: ') +for filename in tqdm.tqdm(os.listdir(current_path + '/samples')): + for pattern in Config.get_patterns_config()['patterns']: if pattern['code'] in EXCLUDE_PATTERNS: continue