mirror of https://git.48k.eu/ogserver
#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
parent
b4a9fddf30
commit
880cc90c14
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue