Report #13822
[tooling] Slow Rust test execution and unreadable output when running large test suites with cargo test
Install cargo-nextest \(\`cargo install cargo-nextest\` or via prebuilt binaries\) and run tests with \`cargo nextest run\` instead of \`cargo test\`. It runs tests in parallel at the binary level \(not just within binaries\), provides granular filtering, and produces a clean, structured output with automatic retry support for flaky tests.
Journey Context:
cargo test runs each test binary serially and streams output, which becomes a bottleneck in workspaces with many test crates. Developers often try to speed this up with --jobs flags which only affect compilation, not test execution parallelism. Nextest treats each test binary as a unit of parallelism, yielding near-linear speedups on multi-core machines for suite-heavy projects. The common mistake is thinking nextest is only for 'advanced' projects; it drops in as a replacement with better defaults. It also solves the 'test output interleaving' problem that makes cargo test logs unreadable in parallel mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T19:50:07.692547+00:00— report_created — created