-
Hi! Here's the workflow file: Here's the build log: https://github.com/Tyrrrz/TestDotnetColors/actions/runs/2198507419 Unfortunately, it seems that Output, when redirected to a file, looks like this:
When running tests in GitHub Codespaces with the mentioned env var set, I get this instead:
What could be the reason it works differently on GHA? Related: #47935 #33980 StackExchange/StackExchange.Redis#2113 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Setting Determining projects to restore...
Restored /home/runner/work/TestDotnetColors/TestDotnetColors/Project.csproj (in 5.79 sec).
Project -> /home/runner/work/TestDotnetColors/TestDotnetColors/bin/Debug/net6.0/Project.dll
Test run for /home/runner/work/TestDotnetColors/TestDotnetColors/bin/Debug/net6.0/Project.dll (.NETCoreApp,Version=v6.0)
Microsoft (R) Test Execution Command Line Tool Version 17.1.0
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
^[[39;49m^[[31m^[[39;49m^[[39;49m^[[31m Failed ^[[39;49mCliFx.Tests.Specs.Throws [2 ms]
^[[39;49m^[[31m Error Message:
^[[39;49m^[[39;49m^[[31m Assert.True() Failure
Expected: True
Actual: False
^[[39;49m^[[39;49m^[[31m Stack Trace:
^[[39;49m^[[39;49m^[[31m at CliFx.Tests.Specs.Throws() in /home/runner/work/TestDotnetColors/TestDotnetColors/Tests.cs:line 11
^[[39;49m
^[[39;49m^[[31mFailed! - Failed: 1, Passed: 0, Skipped: 0, Total: 1, Duration: < 1 ms^[[39;49m^[[39;49m - /home/runner/work/TestDotnetColors/TestDotnetColors/bin/Debug/net6.0/Proj$
^[[39;49m By default, GitHub Action has |
Beta Was this translation helpful? Give feedback.
Setting
TERM=xterm
orxterm-256color
etc. (am11/TestDotnetColors@03fd08b) the uploaded artifact gets the color: