From 880cc90c14f5d8ffa555d12f691785e79a3d6c54 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 5 Jul 2019 12:40:06 +0200 Subject: #915 Improve test output using unittest discover * Call the tests with python module unittest. In particular, the discover function. * Rename tests files to meet the default requirements of discover function. --- tests/run-tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/run-tests.py') diff --git a/tests/run-tests.py b/tests/run-tests.py index f0ddb87..126105d 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -30,8 +30,7 @@ start_mysql(); subprocess.Popen(['../ogAdmServer', '-f', 'config/ogAdmServer.cfg']) -for filename in glob.iglob('units/**'): - subprocess.run(['python3', filename, '-v']) +subprocess.run('python3 -m unittest discover -s units -v', shell=True) stop_mysql(); -- cgit v1.2.3-18-g5258