jakemcc / test-refresh

Refreshes and reruns clojure.tests in your project.
393 stars 28 forks source link

ANSI color for test run results #18

Open pieterbreed opened 10 years ago

pieterbreed commented 10 years ago

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.

jakemcc commented 10 years ago

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.

frankyxhl commented 9 years ago

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

bilus commented 9 years ago

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

jdslavin commented 9 years ago

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.

jakemcc commented 9 years ago

Added a blurb about Ultra. Thanks for the suggestion.