fix: test and coverage subroutines in make
This commit is contained in:
parent
ed18820b7a
commit
e83e435000
1 changed files with 8 additions and 9 deletions
17
Makefile
17
Makefile
|
@ -9,7 +9,7 @@ clean: ## Clean all build artifacts and dependencies
|
||||||
@cargo clean
|
@cargo clean
|
||||||
|
|
||||||
coverage: migrate ## Generate coverage report in HTML format
|
coverage: migrate ## Generate coverage report in HTML format
|
||||||
cargo tarpaulin -t 1200 --out Html --skip-clean --all-features --no-fail-fast --workspace=database/db-sqlx-postgres,database/db-sqlx-sqlite,.
|
cargo tarpaulin -t 1200 --out Html --skip-clean --all-features --no-fail-fast #--workspace=database/db-sqlx-postgres,database/db-sqlx-sqlite,.
|
||||||
|
|
||||||
dev-env: ## Download development dependencies
|
dev-env: ## Download development dependencies
|
||||||
cargo fetch
|
cargo fetch
|
||||||
|
@ -44,16 +44,15 @@ sqlx-offline-data: ## prepare sqlx offline data
|
||||||
--all-features
|
--all-features
|
||||||
|
|
||||||
test: migrate ## Run tests
|
test: migrate ## Run tests
|
||||||
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
|
# cargo test --no-fail-fast
|
||||||
cargo test
|
|
||||||
|
|
||||||
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,.
|
||||||
|
|
||||||
help: ## Prints help for targets with comments
|
help: ## Prints help for targets with comments
|
||||||
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|
||||||
|
|
Loading…
Reference in a new issue