We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
color
go test
Currently, this package does not works when run command go test.
Such as t.Errorf("error message") will not print colored text content.
t.Errorf("error message")
A bypass solution:
First, color.NoColor = false is a must to config.
color.NoColor = false
Them, color.Red("error message") + t.FailNow() == t.Errorf()
color.Red("error message")
t.FailNow()
t.Errorf()
And it works for me now.
The text was updated successfully, but these errors were encountered:
Thanks, your question has the answer I need 👍
Sorry, something went wrong.
No branches or pull requests
Currently, this package does not works when run command
go test
.Such as
t.Errorf("error message")
will not print colored text content.A bypass solution:
First,
color.NoColor = false
is a must to config.Them,
color.Red("error message")
+t.FailNow()
==t.Errorf()
And it works for me now.
The text was updated successfully, but these errors were encountered: