cargo testThe baseline command for reproducing a failing test run.
Commands for debugging failing tests, capturing output, isolating flaky cases, and fixing documentation-generation issues in Rust CLI projects.
Isolate failing tests and inspect runtime output.
cargo testThe baseline command for reproducing a failing test run.
cargo test parse_argsUseful when tightening the debug loop around one failing CLI behavior.
cargo test -- --nocaptureGreat for CLI tools whose tests assert output or side effects.
cargo test -- --test-threads=1Helpful for flaky tests involving ports, temp files, or global process state.
cargo test parse_args_handles_help -- --exactUseful when multiple test names share the same substring.
cargo test -p my-cliAvoids noise from unrelated packages in a workspace.
Generate docs, open local docs, and clean up stale output.
cargo docUseful when troubleshooting rustdoc failures or missing public API docs.
cargo doc --openGood for quickly verifying which public items and examples are appearing.
cargo test --docUseful when only code examples inside docs are failing.
cargo cleanUseful because documentation output can accumulate in `target/doc` across runs.