Add --color=always to test explorer command

Fixes https://github.com/rust-lang/rust-analyzer/issues/20030
This commit is contained in:
Josh McKinney 2025-06-18 04:46:58 -07:00
parent 20a62ab2a1
commit b4f09d75e4
No known key found for this signature in database
GPG key ID: 722287396A903BC5

View file

@ -103,6 +103,7 @@ impl CargoTestHandle {
) -> std::io::Result<Self> {
let mut cmd = toolchain::command(Tool::Cargo.path(), root, &options.extra_env);
cmd.env("RUSTC_BOOTSTRAP", "1");
cmd.arg("--color=always");
cmd.arg("test");
cmd.arg("--package");