google/googletest

Question: Colored output on Windows powershell with CTest

Aperta

#2930 aperta il 7 lug 2020

 (3 commenti) (2 reazioni) (0 assegnatari)C++ (10.772 fork)batch import
help wanted

Metriche repository

Star
 (38.603 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor