Added script to easily run integration tests locally

This commit is contained in:
Donkie
2023-05-18 17:53:20 +02:00
parent 89cff893aa
commit 6bc9c3c4fa
2 changed files with 9 additions and 0 deletions

8
tests_integration/run.py Normal file
View File

@@ -0,0 +1,8 @@
"""Build and run the integration tests."""
import os
os.system("docker build -t donkie/spoolman:test .")
os.system("docker build -t donkie/spoolman-tester:latest tests_integration")
os.system("docker-compose -f tests_integration/docker-compose-postgres.yml down -v")
os.system("docker-compose -f tests_integration/docker-compose-postgres.yml up --abort-on-container-exit")