This is a proof of concept for colorizing minitest output. This was only written as an exercise. For a more reliable and full-featured solution, I highly recommend you take a look at the wonderful minitest-reporters gem.
Add this line to your application's Gemfile:
gem 'minitest-redgreen'
And then execute:
$ bundle
Or install it yourself as:
$ gem install minitest-redgreen
Add this line to your application's test_helper.rb or spec_helper.rb:
require 'minitest/redgreen'
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request