diff --git a/.vscode/settings.json b/.vscode/settings.json index 9488bf16..21692d86 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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" + } } diff --git a/test.sh b/test.sh new file mode 100755 index 00000000..031c0861 --- /dev/null +++ b/test.sh @@ -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