Execute the unit and integration tests of a Rust package.
More information.
- Only run tests containing a specific string in their names:
- Set the number of simultaneous running test cases:
cargo test -- --test-threads={count}
- Require that `Cargo.lock` is up to date:
- Test artifacts in release mode, with optimizations:
- Test all packages in the workspace:
cargo test --package {package}
- Run tests without hiding output from test executions:
cargo test -- --nocapture
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY