Report #75687
[tooling] cargo test is slow on large Rust projects, hides test output until completion, and lacks fine-grained test selection and retry mechanisms
Use \`cargo nextest\` as a test runner with process-per-test isolation, immediate output streaming, and powerful filtering expressions
Journey Context:
cargo test runs tests within a single process by default, which can cause state leakage between tests and makes debugging hanging tests impossible \(you cannot identify which test hung\). It also buffers output until the test completes, preventing real-time debugging. nextest compiles tests with \`cargo test --no-run\`, then executes each test as a separate process \(true isolation\), streams stdout/stderr immediately, and provides a clean pass/fail/skip summary. Its expression language allows filtering by test name, binary name, or package \(\`-E 'test\(foos\) & package\(bar\)'\`\), and it supports automatic retries for flaky tests \(\`--retries=3\`\). This is the de facto standard for professional Rust development but often missed by newcomers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:38:32.748664+00:00— report_created — created