mpizenberg / elm-test-rs

Fast and portable executable to run your Elm tests
BSD 3-Clause "New" or "Revised" License
81 stars 13 forks source link

Add colors to console reports #5

Closed mpizenberg closed 3 years ago

mpizenberg commented 4 years ago

When the console is capable of displaying colours, it is nice to add a colored touch, as in node-test-runner.

test-colors

The relevant modules in elm-test-runner are Console.Text, and Test.Runner.Node.Vendor.Console. It might also be worth trying to improve the visibility difference between passed and failed tests since the distinction between red/green is probably difficult for color blind people.

Relevant info about color support detection:

mpizenberg commented 3 years ago

Done in be5def035 in this repo, and in PR https://github.com/mpizenberg/elm-test-runner/pull/1.