diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-07-05 12:40:06 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-07-05 17:41:26 +0200 |
commit | 880cc90c14f5d8ffa555d12f691785e79a3d6c54 (patch) | |
tree | 707ac6b2e6c724e37cc0a1b33499343db6d0609f /tests/run-tests.py | |
parent | b4a9fddf3094e9b2aeaab8e769f091b992d18786 (diff) |
#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.
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-x | tests/run-tests.py | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |