#!/usr/bin/env python3 import os import subprocess import sys from pathlib import Path if __name__ == '__main__': # move cwd to the project root os.chdir(Path(__file__).resolve().parents[1]) # run the unit tests subprocess.check_call([sys.executable, '-m', 'pytest', 'unit_test', '--runslow']) # run the integration tests subprocess.check_call([sys.executable, '-m', 'pytest', '-x', '--durations', '0', 'test'])