Skip to content

How to configure exception log color background style for failed tests #4069

Answered by nils-a
chrisyarbrough asked this question in Q&A
Discussion options

You must be logged in to vote

For Reference: Color-related issues are #1461, #2976, #3138, #3245

@chrisyarbrough It seems that is not possible, currently. However, simply ignoring all colors should be fairly easy to do in a module:

The IConsole has the ability to change the color - if you supply a version of IConsole that simply "ignores" changes to ForegroundColor and BackgroundColor you'll get output completely without color changes.

Alternative solution with custom colors

While the IConsoleRenderer decides which color to use to render logs, supplying a version of IConsoleRenderer would not change much, since the ICakeLog decides on its own which IConsoleRenderer to use:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chrisyarbrough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants