Skip to content

Instantly share code, notes, and snippets.

@danhodos
Created July 14, 2009 14:39
Show Gist options
  • Save danhodos/146979 to your computer and use it in GitHub Desktop.
Save danhodos/146979 to your computer and use it in GitHub Desktop.
# THIS MAY BE OUT OF DATE.
# Gets rake to shut up about all the files that are being run in the current
# test suite. Also removes "Loaded suite" and "Started" messages.
#
# Warnings/deprecation notices are still shown, though, as they may contain
# valuable information!
require 'rake'
require 'test/unit/ui/console/testrunner'
RakeFileUtils.class_eval do
def rake_output_message(msg)
true
end
end
Test::Unit::UI::Console::TestRunner.class_eval do
def setup_mediator
@mediator = create_mediator(@suite)
end
def started(result)
@result = result
end
alias :finished_original :finished
def finished(elapsed_time)
return if @suite.tests.empty?
finished_original(elapsed_time)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment