test-refresh icon indicating copy to clipboard operation
test-refresh copied to clipboard

ANSI color for test run results

Open pieterbreed opened this issue 11 years ago • 5 comments

It would be awesome if there was a way to specify colorized output of the test runs.

The most import would be to make the failures RED and the passes GREEN with the final status message (Passed all tests or Failed 1 of 1 assertions) being RED or GREEN depending on which status it is.

pieterbreed avatar May 14 '14 16:05 pieterbreed

Thought about this before and think it is a good idea. Need to do it in a way works cross operating system and probably have a way to turn it off.

jakemcc avatar May 15 '14 22:05 jakemcc

I found this:https://github.com/venantius/ultra and it works well with lein-test-refresh.

frankyxhl avatar Jun 05 '15 12:06 frankyxhl

It works great. @jakemcc You should probably add it to Readme.

bilus avatar Oct 09 '15 09:10 bilus

I did a pull request with Jake recently that allows us to use a custom reporter with lein-test-refresh. That feature is now included in 0.11.0. You can easily create your own reporter that you can colorize anyway you would like. Have a look at lein-test-refresh/lein2/src/lein2/sample_report.clj for an example. This example does not do any coloring but you can easily add it using https://github.com/ibdknox/colorize in your reporter.

jdslavin avatar Oct 10 '15 03:10 jdslavin

Added a blurb about Ultra. Thanks for the suggestion.

jakemcc avatar Oct 10 '15 16:10 jakemcc