Skip to content

Disabling colored output requires convoluted cargo test --color=never -- --color=never incantation #1983

Open
@emidoots

Description

@emidoots

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cliArea: Command-line interface, option parsing, etc.A-console-outputArea: Terminal output, colors, progress bar, etc.Command-testS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions