From 7b2002b7c88added581bacf990a3ad8ea515ccc3 Mon Sep 17 00:00:00 2001 From: juancwu Date: Mon, 6 Apr 2026 18:04:29 +0000 Subject: [PATCH] chore: update test commands --- Taskfile.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index d95d050..166b547 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -25,21 +25,18 @@ tasks: cmds: - echo "Starting app..." - task --parallel tailwind-watch templ - # Testing test: desc: Run tests (SQLite only) cmds: - - go test ./internal/... -v -count=1 - + - set -o pipefail && go test ./... -json | tparse -all test:integration: desc: Run tests against both SQLite and PostgreSQL cmds: - docker run --name budgit-test-pg -d -p 5433:5432 -e POSTGRES_USER=budgit_test -e POSTGRES_PASSWORD=testpass -e POSTGRES_DB=budgit_test postgres:16-alpine - defer: docker rm -f budgit-test-pg - cmd: sleep 3 - - cmd: BUDGIT_TEST_POSTGRES_URL="postgres://budgit_test:testpass@localhost:5433/budgit_test?sslmode=disable" go test ./internal/... -v -count=1 - + - cmd: BUDGIT_TEST_POSTGRES_URL="postgres://budgit_test:testpass@localhost:5433/budgit_test?sslmode=disable" set -o pipefail && go test ./... -json | tparse -all # Production build build: desc: Build production binary