[DX] Prevent cargo test
from working, point users towards cargo nextest
#8691
Labels
C-housekeeping
Category: Refactoring, cleanups, code quality
CI currently enforces that
cargo nextest
rather thancargo test
passes. Due to the differences between how these two runners run tests and test harnesses, it is straightforward to end up in a situation where various invocations ofcargo test
just outright fail to pass (due to e.g. global state details) despite largely always-green HEAD.While these failures may be an indication of poorly written test, there is little reason to actually spend time on maintaining
cargo test
in a working condition when the primary motivation behind moving away fromcargo test
in the CI was to get rid of flakiness (#8207). So clearly we already declared this a lost battle and probably won't return back to fighting it unless something changes drastically.It is still a terrible developer experience when they learn about this after they have spent 3 hours debugging test failures. We should figure out if and how we could make
cargo test
invocations fail loudly, quickly, every time, and with a helpful message pointing them atcargo nextest
.The text was updated successfully, but these errors were encountered: