google/googletest

Question: Colored output on Windows powershell with CTest

Open

#2,930 创建于 2020年7月7日

在 GitHub 查看
 (2 评论) (2 反应) (0 负责人)C++ (10,772 fork)batch import
help wanted

仓库指标

Star
 (38,603 star)
PR 合并指标
 (平均合并 7天 8小时) (30 天内合并 1 个 PR)

描述

I'm using CMake and CTest to build and run my tests.

On Linux I can produce color googletest output with CTest, like this: GTEST_COLOR=1 ctest -V

On Windows I tried something similar in powershell: $Env:GTEST_COLOR=1; ctest -V

However the output is still not colored. How can I achieve the desired colored output?

I'm using Googletest 1.10.0 and CMake 3.17.3

贡献者指南