From 6bc9c3c4fa6e9eb8ea62a8e059ce18e9502be246 Mon Sep 17 00:00:00 2001 From: Donkie Date: Thu, 18 May 2023 17:53:20 +0200 Subject: [PATCH] Added script to easily run integration tests locally --- tests_integration/__init__.py | 1 + tests_integration/run.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests_integration/__init__.py create mode 100644 tests_integration/run.py diff --git a/tests_integration/__init__.py b/tests_integration/__init__.py new file mode 100644 index 0000000..f389ea1 --- /dev/null +++ b/tests_integration/__init__.py @@ -0,0 +1 @@ +"""Integration tests root.""" diff --git a/tests_integration/run.py b/tests_integration/run.py new file mode 100644 index 0000000..f818ba6 --- /dev/null +++ b/tests_integration/run.py @@ -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")