Skip to content
Snippets Groups Projects
Commit 170e3741 authored by Kristoffer Richardsson's avatar Kristoffer Richardsson
Browse files

#119 Added toot to toolbelt to run system tests. Removed system tests from...

#119 Added toot to toolbelt to run system tests. Removed system tests from test tool so that it only runs unit tests.
parent 496d9429
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
import os
import os.path as _path
import subprocess
try:
script_dir = os.path.dirname(os.path.realpath(__file__))
root = _path.normpath(_path.join(script_dir, '../../sys-test'))
print('**** Running sys tests ****')
subprocess.check_call(['python3', '-m', 'unittest', 'discover', root])
print('Unit tests pass')
except subprocess.CalledProcessError as e:
print('Error: Unit tests fail')
raise e
......@@ -5,7 +5,7 @@ import subprocess
try:
script_dir = os.path.dirname(os.path.realpath(__file__))
root = _path.normpath(_path.join(script_dir, '../..'))
root = _path.normpath(_path.join(script_dir, '../../test'))
print('**** Running tests in python2 ****')
subprocess.check_call(['python2', '-m', 'unittest', 'discover', root])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment