Section: Test debugging workflows

Run tests serially

bash
bash
cargo test -- --test-threads=1
Explanation

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
Run all tests
Build and run the full test suite.
OpenIn sheetbashsame section
Run a subset of tests
Filter tests by name substring.
OpenIn sheetbashsame section
Show test output
Print stdout/stderr from tests.
OpenIn sheetbashsame section
Run one exact test
Use the exact test name through the test harness.
OpenIn sheetbashsame section
Test one workspace package
Limit the run to a selected member.
OpenIn sheetbashsame section
Run doctests only
Focus on failures in documentation examples.
OpenIn sheetbash2 tag match