fix: make test: run tests

This commit is contained in:
Aravinth Manivannan 2022-03-30 10:22:27 +05:30
parent 5d1799a93d
commit 32378266f0
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -44,12 +44,12 @@ sqlx-offline-data: ## prepare sqlx offline data
--all-features --all-features
test: migrate ## Run tests test: migrate ## Run tests
cargo test --no-fail-fast
# cd database/db-sqlx-postgres &&\ # cd database/db-sqlx-postgres &&\
# DATABASE_URL=${POSTGRES_DATABASE_URL}\ # DATABASE_URL=${POSTGRES_DATABASE_URL}\
# cargo test --no-fail-fast # cargo test --no-fail-fast
# cd database/db-sqlx-sqlite &&\ # cd database/db-sqlx-sqlite &&\
# DATABASE_URL=${SQLITE_DATABASE_URL}\ # DATABASE_URL=${SQLITE_DATABASE_URL}\
# cargo test --no-fail-fast
xml-test-coverage: migrate ## Generate cobertura.xml test coverage xml-test-coverage: migrate ## Generate cobertura.xml test coverage
cargo tarpaulin -t 1200 --out Xml --skip-clean --all-features --no-fail-fast #--workspace=database/db-sqlx-postgres,database/db-sqlx-sqlite,. cargo tarpaulin -t 1200 --out Xml --skip-clean --all-features --no-fail-fast #--workspace=database/db-sqlx-postgres,database/db-sqlx-sqlite,.