Skip to content

Commit

Permalink
chore: add test tools (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lampese authored Jul 25, 2024
1 parent 9d7b5b8 commit 8f3234a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -72,5 +70,8 @@
"[typescript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"vitest.enable": true
"vitest.enable": true,
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
}
}
7 changes: 7 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8f3234a

Please sign in to comment.