dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.85k stars 670 forks source link

.NET test output has no colors #3792

Open RikkiGibson opened 4 years ago

RikkiGibson commented 4 years ago

Currently the ".NET Test Log" output window drops the colorization from the underlying test runner.

image

Test runs in the terminal show that there are some useful colors which make it easier to scan the test output:

image

Going by microsoft/vscode#571 it seems like OutputChannel (the API powering the .NET Test Log) does not support colours in output and is unlikely to anytime soon.

Perhaps nicely colourized test output could instead be achieved by moving the .NET Test Log to use the createTerminal(options: ExtensionTerminalOptions) API instead, using a pseudoterminal controlled by the extension.

cartermp commented 4 years ago

Resolution here is probably to do as @RikkiGibson suggests and log to the terminal instead of output window