Added script to easily run integration tests locally
This commit is contained in:
1
tests_integration/__init__.py
Normal file
1
tests_integration/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
"""Integration tests root."""
|
||||||
8
tests_integration/run.py
Normal file
8
tests_integration/run.py
Normal 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")
|
||||||
Reference in New Issue
Block a user