Use one test thread to reduce races.
Section: Test debugging workflows
Run tests serially
bash
bash
cargo test -- --test-threads=1Explanation
Helpful for flaky tests involving ports, temp files, or global process state.
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 Test debugging workflows