You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think --color_output=no should not just use the default color for everything, it should stop color format codes from being outputted completely. The current behaviour is very misleading to me.
To understand why it is a problem let me describe my test setup:
I use ctest to run boost tests and instructed ctest to output everything to a file.
The file contains all color codes that boost writes, --color_output=yes/no only changes if its all the same color or not, the codes remain any way.
The text was updated successfully, but these errors were encountered:
Agreed. This also happens when trying to run unit tests within Xcode's debugger windows (which doesn't support ANSI colors).
I was able to work around it (in my particular case) by tweaking the #define BOOST_TEST_SCOPE_SETCOLOR. I added these lines before including my main unit test headers:
I think --color_output=no should not just use the default color for everything, it should stop color format codes from being outputted completely. The current behaviour is very misleading to me.
test/include/boost/test/utils/setcolor.hpp
Line 304 in 35c9acf
To understand why it is a problem let me describe my test setup:
I use ctest to run boost tests and instructed ctest to output everything to a file.
The file contains all color codes that boost writes, --color_output=yes/no only changes if its all the same color or not, the codes remain any way.
The text was updated successfully, but these errors were encountered: