Report #61982
[tooling] Rust test output is verbose, slow to run, or hard to parse in CI; tests leak state via global statics
Use \`cargo nextest run\` instead of \`cargo test\`. It provides deterministic execution order, automatic retries for flaky tests, rich JUnit XML output for CI ingestion, and runs tests in separate processes to prevent shared-state pollution via global statics or env vars.
Journey Context:
\`cargo test\` runs tests in a single process by default, allowing global state leaks between tests and offering only unstructured text output. Nextest treats tests as a dependency graph, runs them in parallel across CPUs with process isolation, and supports 'test groups' for limited resources \(e.g., database connections\). It offers first-class retries for flaky tests and outputs JUnit XML that CI systems can consume for rich reporting. It's a drop-in replacement that scales from laptops to large CI fleets without code changes.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:31:18.199576+00:00— report_created — created