Added script to easily run integration tests locally

This commit is contained in:
Donkie committed 2023-05-18 17:53:20 +02:00
1 parent 89cff893aa
commit 6bc9c3c4fa
2 files changed
+9

No files matched your search

+1
View File
@@ -0,0 +1 @@
"""Integration tests root."""
+8
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")