Powershell
$env:RUST_BACKTRACE=1; cargo test
Requires sqlx-cli
Install sqlx-cli
cargo install sqlx-cli --no-default-features --features native-tls,postgres
Warning
|
One does not rely on .env/DATABASE_URL since it is configured with the application user (which should not be authorized to alter the schema and the tables…)
|
Database Migration
DATABASE_URL=postgres://tokend_dev:dev_p@localhost:5432/tokend; sqlx migrate run
Requires tarpaulin
Install tarpaulin
cargo install cargo-tarpaulin
Execute test with coverage
cargo tarpaulin -o html