Mix test hides console output text with black on black colorization?

While working on my unit tests running mix test I got this failure:

I selected the failure information to copy and paste it to a text editor for reference later and I saw this:

So apparently mix test is colorizing the line of the test that fails as black on black? Do I have a setting wrong, or is this an unfortunate choice of colors by the testing infrastructure?

2 Likes

I’d say the issue is with your setup. That line uses black with the bright modifier. Try this in your terminal:

IO.puts("#{IO.ANSI.black()}#{IO.ANSI.bright()}Hello darkness my old friend")
2 Likes

Thank you, you’re correct. I’m using the Mac default Terminal app, using one of the default profiles (Homebrew). A few of the profiles have black and “bright black” display as identical colors when the background is black. I imagine others may accidentally choose one of these profiles and miss that important line in their test output.