Created
February 15, 2010 22:00
-
-
Save jnunemaker/305040 to your computer and use it in GitHub Desktop.
shows test unit failures immediately
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
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.long_display, 1) | |
@io.puts("\n") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment