#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.
master
Javier Sánchez Parra 2019-07-05 12:40:06 +02:00 committed by OpenGnSys Support Team
parent b4a9fddf30
commit 880cc90c14
7 changed files with 1 additions and 2 deletions

View File

@ -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();