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

test: Make tests not squelch color when being run by bazel. #4006

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

daniel-wong-dfinity-org
Copy link
Contributor

@daniel-wong-dfinity-org daniel-wong-dfinity-org commented Feb 18, 2025

What this literally does is sets the CLICOLOR_FORCE environment variable to true. This causes terminal output to be colored, if the test follows that convention. In particular, the Rust colored library uses that convention. In particular, canbench uses colored. This makes the output of canbench easier for humans to consume (and we should really care about humans, such as ourselves).

auto-merge was automatically disabled February 18, 2025 19:09

Pull request was closed

…What this literally does is sets the CLICOLOR_FORCE environment variable to true. This is a convention that different programs follow. In particular, the colored Rust library uses it (and canbench uses colored).
@daniel-wong-dfinity-org daniel-wong-dfinity-org force-pushed the bazel-no-squelch-color-daniel-wong branch from 87e566d to 67cd361 Compare February 19, 2025 11:33
…oloring. (This is why tests should not look long exact strings in output that is intended for human consumption, and instead should just look for key words.)
@daniel-wong-dfinity-org daniel-wong-dfinity-org added this pull request to the merge queue Feb 19, 2025
Merged via the queue into master with commit 1767e03 Feb 19, 2025
24 checks passed
@daniel-wong-dfinity-org daniel-wong-dfinity-org deleted the bazel-no-squelch-color-daniel-wong branch February 19, 2025 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants