dotnet / dotnet/vscode-csharp

.NET test output has no colors

Open
#3,792 1 comment 1 reaction 0 assignees View on GitHub
Improvement Test Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

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

![image](https://user-images.githubusercontent.com/5833655/82263724-5dc9ea00-9918-11ea-8ba4-df5bba16d12e.png)

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

![image](https://user-images.githubusercontent.com/5833655/82263814-8f42b580-9918-11ea-9880-8f0700cf3f55.png)

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)](https://code.visualstudio.com/api/references/vscode-api#window.createTerminal) API instead, using a pseudoterminal controlled by the extension.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.