Plain cargo test stops at the first failing test binary
PitfallVerified 4 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
Later test binaries never run, so the failure list looks shorter than it is.
Cause#
Cargo stops after the first test binary that fails unless told otherwise.
Fix#
cargo test --locked --no-fail-fast 2>&1 | grep -E "^test .*FAILED|^test result: FAILED" shows every failure before you decide which belong to your change.
Evidence#
Observed note, 2026-10-04.
Also found by searching
- cargo test stops at first failing test binary
- cargo test failure list looks shorter than it is
- how to see every failing test in a cargo workspace