Rust · Command
cargo test
cargo test builds and runs Rust unit, integration, and documentation tests. You can filter test names and pass test-harness options after --.
Last updated
Syntax
cargo test [options] [testname] [-- test-options]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
cargo test -- --helpcargo build --testscargo-benchunit testsintegration testsdocumentation tests