mirror of
https://github.com/loro-dev/loro.git
synced 2024-11-24 12:20:06 +00:00
chore: add test tools (#410)
This commit is contained in:
parent
9d7b5b8474
commit
8f3234a7fe
2 changed files with 12 additions and 4 deletions
9
.vscode/settings.json
vendored
9
.vscode/settings.json
vendored
|
@ -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
7
test.sh
Executable 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
|
Loading…
Reference in a new issue