Running tests with the same opt-level in CI, but preserving debug assertions (#1253)

This commit is contained in:
Jędrzej Stuczyński
2022-05-05 16:13:04 +02:00
committed by GitHub
parent 8fbf84174d
commit 943337db0d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -10,7 +10,8 @@ overflow-checks = true
panic = "abort"
[profile.test]
opt-level = 2
# equivalent of running in `--release` (but since we're in test profile we're keeping overflow checks and all of those by default)
opt-level = 3
[workspace]
+1 -1
View File
@@ -26,7 +26,7 @@ clippy-all-wallet:
cargo clippy --workspace --manifest-path nym-wallet/Cargo.toml --all-features -- -D warnings
test-main:
cargo test --all-features --workspace --release
cargo test --all-features --workspace
test-contracts:
cargo test --manifest-path contracts/Cargo.toml --all-features