Rust CLI Build, Run, Test, and Lint/Run a matching subset of tests

Filter tests by substring.

Section: Tests and benches

Run a matching subset of tests

bash
bash
cargo test parse_args
Explanation

Great for tight feedback loops while debugging one area.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Tests and benches
Run the test suite
Build and run tests for the local package.
OpenIn sheetbashsame section
Show println output in tests
Pass test harness flags after `--`.
OpenIn sheetbashsame section
Run tests serially
Force one test thread.
OpenIn sheetbashsame section
Run benchmarks
Execute benchmark targets if configured.
OpenIn sheetbashsame section
Build tests without running them
Compile test artifacts only.
OpenIn sheetbash2 tag match
Type-check without producing binaries
Validate code quickly without final artifacts.
OpenIn sheetbash1 tag match