Options (3)
booleanOnly run tests containing a specific string in their names
Example:
cargo {{[t|test]}} {{test_name}}-r, --releasebooleanTest artifacts in release mode, with optimizations
Example:
cargo {{[t|test]}} {{[-r|--release]}}-p, --packagebooleanRun tests for a specific package
Example:
cargo {{[t|test]}} {{[-p|--package]}} {{package}}Examples (6)
Only run tests containing a specific string in their names
cargo [t|test] test_nameSet the number of simultaneous running test cases
cargo [t|test] -- --test-threads countTest artifacts in release mode, with optimizations
cargo [t|test] [-r|--release]Test all packages in the workspace
cargo [t|test] --workspaceRun tests for a specific package
cargo [t|test] [-p|--package] packageRun tests without hiding output from test executions
cargo [t|test] -- --nocapturemade by @shridhargupta | data from tldr-pages