mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-05 15:44:21 +00:00
Add test env var to settings.json
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user