From c1891f148e6f971ca4c845ae6ebd4883e653a44d Mon Sep 17 00:00:00 2001 From: Joey Hills <69769618+joeymhills@users.noreply.github.com> Date: Sun, 2 Jun 2024 15:21:53 -0400 Subject: [PATCH] Created a test script to that can be run in 'make test-e2e' and 'make (#1966) Fixes end-to-end docker compose tests --- Makefile | 2 +- scripts/test_e2e.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 scripts/test_e2e.sh diff --git a/Makefile b/Makefile index 01a57d01..ba3f64b8 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ test-unit-docker: ## run unit tests with docker .PHONY: test-e2e test-e2e: - cd e2etests && go test --tags e2etests + ./scripts/test_e2e.sh .PHONY: test-e2e-docker test-e2e-docker: diff --git a/scripts/test_e2e.sh b/scripts/test_e2e.sh new file mode 100755 index 00000000..c3bf1b37 --- /dev/null +++ b/scripts/test_e2e.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# test_e2e.sh + +# Run the e2e tests with the race detector enabled +set -xeuo pipefail +cd e2etests && go test --tags e2etests -race