Created
July 14, 2009 14:39
-
-
Save danhodos/146979 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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