nao1215 / spectest

A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.
MIT License
37 stars 1 forks source link

Output error messages in red text  #141

Open nao1215 opened 1 year ago

nao1215 commented 1 year ago

Is your feature request related to a problem? Please describe.

If the expected value does not match the obtained value, the following message appears. We want to display this message in red text to make it easier for users to understand the error content.

                Error:          Not equal: 
                                expected: true
                                actual  : false
                Test:           TestNewApp/Width_test
                Messages:       mismatched values for header 'Content-Type'. Expected image/png but received text/plain; charset=utf-8
                Name:           width,height is zero

Use fatih/color to change text color for cross-platform support.