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.lintOnSave": "package",
|
||||||
"go.formatTool": "goimports",
|
"go.formatTool": "goimports",
|
||||||
"go.testFlags": ["-tags=test,integration"],
|
"go.testFlags": ["-tags=test,integration"],
|
||||||
|
"go.testEnvVars": {
|
||||||
|
"LEMMA_TEST_POSTGRES_URL": "postgres://postgres:postgres@localhost:5432/lemma_test?sslmode=disable"
|
||||||
|
},
|
||||||
"[go]": {
|
"[go]": {
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
|
|||||||
@@ -15,6 +15,6 @@ fi
|
|||||||
export LEMMA_TEST_POSTGRES_URL="postgres://postgres:postgres@localhost:5432/lemma_test?sslmode=disable"
|
export LEMMA_TEST_POSTGRES_URL="postgres://postgres:postgres@localhost:5432/lemma_test?sslmode=disable"
|
||||||
|
|
||||||
echo "Running integration tests..."
|
echo "Running integration tests..."
|
||||||
go test -v -tags=integration ./...
|
go test -v -tags=test,integration ./...
|
||||||
|
|
||||||
docker compose -f $COMPOSE_FILE down
|
docker compose -f $COMPOSE_FILE down
|
||||||
|
|||||||
Reference in New Issue
Block a user