Disabling colored output requires convoluted cargo test --color=never -- --color=never
incantation · Issue #1983 · rust-lang/cargo (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
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.