Add FORCE_COLOR environment variable support#124107
Add FORCE_COLOR environment variable support#124107kasperk81 wants to merge 10 commits intodotnet:mainfrom
Conversation
Refactor assertions to improve clarity and functionality.
| @@ -67,8 +67,9 @@ public static void RedirectedOutputDoesNotUseAnsiSequences() | |||
| Console.ResetColor(); | |||
There was a problem hiding this comment.
These tests for System.Console. What about for M.E.Logging.Console?
Also, these tests are only validating a single env var. Can we have a few tests that validate when multiple env vars are set and thus their precedence?
🤖 Copilot Code Review — PR #124107Holistic AssessmentMotivation: The PR addresses a real need — adding Approach: The approach of treating Summary: Detailed Findings❌ Breaking change for
|
|
As discussed the change around DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION is ok. |
|
@kasperk81 why did you close this? |
|
Tests were failing and I wasn’t sure how to move forward with fixing them, so I closed it. |
Fixes #124091