From 72b0ac08ce09e8625db268d35a16d4b78e54c07e Mon Sep 17 00:00:00 2001 From: LordMathis Date: Fri, 7 Mar 2025 19:47:44 +0100 Subject: [PATCH] Add test env var to settings.json --- .vscode/settings.json | 3 +++ server/run_integration_tests.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 52c38cb..f0043cc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,9 @@ "go.lintOnSave": "package", "go.formatTool": "goimports", "go.testFlags": ["-tags=test,integration"], + "go.testEnvVars": { + "LEMMA_TEST_POSTGRES_URL": "postgres://postgres:postgres@localhost:5432/lemma_test?sslmode=disable" + }, "[go]": { "editor.formatOnSave": true, "editor.codeActionsOnSave": { diff --git a/server/run_integration_tests.sh b/server/run_integration_tests.sh index f92dd07..63edde2 100755 --- a/server/run_integration_tests.sh +++ b/server/run_integration_tests.sh @@ -15,6 +15,6 @@ fi export LEMMA_TEST_POSTGRES_URL="postgres://postgres:postgres@localhost:5432/lemma_test?sslmode=disable" echo "Running integration tests..." -go test -v -tags=integration ./... +go test -v -tags=test,integration ./... docker compose -f $COMPOSE_FILE down