Add test env var to settings.json

This commit is contained in:
2025-03-07 19:47:44 +01:00
parent 32628abf09
commit 72b0ac08ce
2 changed files with 4 additions and 1 deletions

View File

@@ -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": {

View File

@@ -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