feat: add cmd to run db tests only

This commit is contained in:
realaravinth 2022-05-27 17:07:05 +05:30
parent bbc8873762
commit 21dcc2144b
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88

View file

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