Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The color option is not passed to tests #3474

Closed
alygin opened this issue Dec 30, 2016 · 2 comments
Closed

The color option is not passed to tests #3474

alygin opened this issue Dec 30, 2016 · 2 comments

Comments

@alygin
Copy link

alygin commented Dec 30, 2016

When running cargo test, the --color option affects cargo's output but is not propagated to tests themselves, which prevents coloring their results (ok or FAILED) under certain circumstances when --color=always is used.

The --color option should be passed to tests the same way it's passed to the compiler and other tools.

@matklad
Copy link
Member

matklad commented Dec 30, 2016

The same underline issue as #1983. We can't just pass --color=always to test runner because theoretically you can plug in a custom test runner which does not accept this flag.

@alygin
Copy link
Author

alygin commented Dec 30, 2016

Thanks! That sounds reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants