Coloring your tests in Rails

Having learnt about unit testing in rails during my short internship stint at Novell, I've always thought that rake tests would always have colored output. Little did I know that you'd have to install a gem to do so.

So, to get your rake test output in a more readable format, install the gem 'redgreen'
gem install redgreen

and add the following
require 'redgreen'

at the top of your test_helpers.rb.

This would return red/green/yellow colored output on your tests to indicate whether it has passed, has errors or failed. Makes running test much more easy on the eyes :)