Disabling colored output requires convoluted cargo test --color=never -- --color=never
incantation (original) (raw)
EDIT: see durka's comment below
It seems that there is no way to disable the colored output of cargo test
. This is a nice thing to have when displaying output on e.g. CI sites that do not support ASCII escape codes.
Combinations I tried blindly that didn't work include:
cargo test --no-color
cargo test -- --no-color
cargo test --color
cargo test -- --color
cargo test --color never
Also checked output of cargo -h
and cargo test -h
but saw nothing.