google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
34.75k stars 10.14k forks source link

Question: Colored output on Windows powershell with CTest #2930

Open shrgabor opened 4 years ago

shrgabor commented 4 years ago

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

derekmauro commented 4 years ago

I don't think any of us use powershell. If someone can figure this out, we might accept a patch.

tanzislam commented 4 years ago

@shrgabor Which compiler did you use to build Google Test? If it's using MinGW then #3049 should help.