16 lines
420 B
Python
Executable File
16 lines
420 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
|
|
if __name__ == '__main__':
|
|
# move cwd to the project root
|
|
os.chdir(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
# run the unit tests
|
|
subprocess.check_call([sys.executable, '-m', 'pytest', 'unit_test'])
|
|
|
|
# run the integration tests
|
|
subprocess.check_call([sys.executable, '-m', 'pytest', '--durations', '0', 'test'])
|