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