#257·color

Color (wrongly) disabled in VSCode test results output

Author: pgeiemCreated Apr 11, 2025Updated Apr 14, 2025

When running some test cases from VS Code (under windows) testing panel. The output in the Test results panel do not display colors.

The global variable NoColor is set to true because both isatty.IsTerminal and isatty.IsCygwinTerminal return false. While forcing NoColor to false the color text are printed correctly. So it seems there is an incorrect terminal capabilities detection in this case.

Inversely this is working properly in VS Code terminal view which use a PowerShell behind.

Is there any possibility to update terminal capabilities detection ?