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

Support NO_COLOR environment variable #149

Closed
olafurpg opened this issue Jun 19, 2020 · 3 comments
Closed

Support NO_COLOR environment variable #149

olafurpg opened this issue Jun 19, 2020 · 3 comments

Comments

@olafurpg
Copy link
Member

Currently, the only way to disable ANSI color output from MUnit is to use the cryptic combination of the testing framework flags testOnly -- -n +l. We should make it easier to disable colors in MUnit by respecting the NO_COLOR environment variable https://no-color.org/

@worace
Copy link

worace commented Jun 29, 2020

This would be great to have. In the process of looking for this I also learned that there is an existing --no-color command line flag accepted by SBT. This seems to work to disable color output for scalatest but not for MUnit.

Would it make sense for MUnit to honor that flag as well, or is it too sbt-specific?

@pokle
Copy link

pokle commented Jun 16, 2021

I'd like there to be a way to turn off all terminal escape codes - because they just create a lot of noise in the log output of my build tool (buildkite)

@olafurpg olafurpg added this to the MUnit v1.0 milestone Oct 16, 2021
@valencik valencik removed this from the MUnit v1.0 milestone Apr 25, 2023
@mzuehlke
Copy link
Contributor

This got fixed by

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

Successfully merging a pull request may close this issue.

5 participants