Skip to content

Instantly share code, notes, and snippets.

@expectedbehavior
Created February 3, 2010 20:05
Show Gist options
  • Save expectedbehavior/293965 to your computer and use it in GitHub Desktop.
Save expectedbehavior/293965 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
class Test::Unit::UI::Console::RedGreenTestRunner < Test::Unit::UI::Console::TestRunner
def output_single(something, level=NORMAL)
return unless (output?(level))
something = case something
when '.' then Color.green('.')
when '☻' then Color.green('☻')
when 'F' then Color.red("F")
when 'E' then Color.yellow("E")
else something
end
@io.write(something)
@io.flush
end
end
config.gem "redgreen"
require 'test/unit/ui/console/testrunner'
require File.join("#{RAILS_ROOT}/lib", 'patches/redgreen')
require File.join("#{RAILS_ROOT}/lib", 'patches/testrunner')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment