Created
January 22, 2009 18:15
-
-
Save lifo/50645 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# test.rb | |
# require 'report_test_error_asap.rb' | |
# lib/report_test_error_asap.rb | |
require 'test/unit' | |
require 'test/unit/ui/console/testrunner' | |
class Test::Unit::UI::Console::TestRunner | |
def add_fault(fault) | |
hax_output(fault) | |
@faults << fault | |
output_single(fault.single_character_display, 1) | |
@already_outputted = true | |
end | |
def hax_output(fault) | |
@io.puts("\n") | |
output_single(fault.short_display, 1) # fault.long_display for the full trace | |
@io.puts("\n") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment