add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

View File

@@ -1,17 +1,17 @@
# cargo test
> 执行 Rust 包的单元测试和集成测试。
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-test.html>.
> 更多信息:<https://doc.rust-lang.org/cargo/commands/cargo-test.html>
- 仅运行包含特定字符串在其名称中的测试:
- 仅运行名称中包含特定字符串的测试:
`cargo test {{测试名称}}`
`cargo test {{testname}}`
- 设置并行运行测试用例数量:
- 设置同时运行测试用例数量:
`cargo test -- --test-threads {{数量}}`
`cargo test -- --test-threads {{count}}`
- release 模式下测试构建,启用优化:
-发布模式下测试,带有优化:
`cargo test --release`
@@ -19,10 +19,10 @@
`cargo test --workspace`
- 特定包运行测试:
- 运行特定包测试:
`cargo test --package {{包名}}`
`cargo test --package {{package}}`
- 运行测试时不隐藏测试执行的输出:
`cargo test -- --nocapture`
`cargo test -- --nocapture`