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 5d93e31067
commit 54301d1bd5
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");