From 21dcc2144bd315078122490d6e2eb4bf4b7ab757 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 27 May 2022 17:07:05 +0530 Subject: [PATCH] feat: add cmd to run db tests only --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 9228cdb9..20e3580a 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,10 @@ sqlx-offline-data: ## prepare sqlx offline data # cd db/db-sqlx-sqlite/ \ # && DATABASE_URL=${SQLITE_DATABASE_URL} cargo sqlx prepare +test-db: ## run tests on database + cd db/db-sqlx-postgres &&\ + DATABASE_URL=${POSTGRES_DATABASE_URL}\ + cargo test --no-fail-fast test: frontend-test frontend ## Run all available tests $(call cache_bust) cd db/db-sqlx-postgres &&\