chore: add test tools (#410)

This commit is contained in:
东灯 2024-07-25 19:14:02 +08:00 committed by GitHub
parent 9d7b5b8474
commit 8f3234a7fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

View file

@ -43,9 +43,7 @@
"RUST_BACKTRACE": "full",
"DEBUG": "*"
},
"rust-analyzer.cargo.features": [
"test_utils"
],
"rust-analyzer.cargo.features": ["test_utils"],
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"rust-analyzer.server.extraEnv": {
"RUSTUP_TOOLCHAIN": "stable"
@ -72,5 +70,8 @@
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"vitest.enable": true
"vitest.enable": true,
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}

7
test.sh Executable file
View file

@ -0,0 +1,7 @@
Mode="$*"
if [ $Mode == "wasm" ]; then
cargo test --features test_utils wasm -- --show-output
else
cargo test --features test_utils -- --show-output
fi