Class: Test::Unit::UI::Emacs::TestRunner
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
|
|
Instance Chain:
|
|
Inherits: |
Test::Unit::UI::Console::TestRunner
|
Defined in: | lib/test/unit/ui/emacs/testrunner.rb |
Constant Summary
::Test::Unit::UI::Console::OutputLevel - Included
IMPORTANT_FAULTS_ONLY, NORMAL, PROGRESS_ONLY, SILENT, VERBOSE
Class Method Summary
::Test::Unit::UI::Console::TestRunner - Inherited
.new | Creates a new |
::Test::Unit::UI::TestRunner - Inherited
::Test::Unit::UI::TestRunnerUtilities - Extended
run | Creates a new |
start_command_line_test | Takes care of the ARGV parsing and suite determination necessary for running one of the TestRunners from the command line. |
Instance Attribute Summary
::Test::Unit::UI::Console::TestRunner - Inherited
::Test::Unit::UI::TestRunner - Inherited
Instance Method Summary
- #format_fault(fault) private
- #format_fault_error(error) private
- #format_fault_failure(failure) private
- #output_setup_end private
- #output_started private
::Test::Unit::UI::Console::TestRunner - Inherited
::Test::Unit::UI::TestRunner - Inherited
#start | Begins the test run. |
#attach_listeners, #diff_target_string?, #prepare_for_diff, #setup_mediator, #start_mediator |
Constructor Details
This class inherits a constructor from Test::Unit::UI::Console::TestRunner
Instance Method Details
#format_fault(fault) (private)
[ GitHub ]# File 'lib/test/unit/ui/emacs/testrunner.rb', line 15
def format_fault(fault) return super unless fault.respond_to?(:label) format_method_name = "format_fault_#{fault.label.downcase}" if respond_to?(format_method_name, true) __send__(format_method_name, fault) else super end end
#format_fault_error(error) (private)
[ GitHub ]# File 'lib/test/unit/ui/emacs/testrunner.rb', line 38
def format_fault_error(error) result = "#{error.label}:\n" result += "#{error.test_name}:\n" result += "#{error.}\n" result += error.backtrace.join("\n") result end
#format_fault_failure(failure) (private)
[ GitHub ]# File 'lib/test/unit/ui/emacs/testrunner.rb', line 25
def format_fault_failure(failure) if failure.location.size == 1 location = failure.location[0] location_display = location.sub(/\A(.:\d).*/, ' [\\1]') else location_display = "\n" + failure.location.join("\n") end result = "#{failure.label}:\n" result += "#{failure.test_name}#{location_display}:\n" result += failure. result end
#output_setup_end (private)
[ GitHub ]# File 'lib/test/unit/ui/emacs/testrunner.rb', line 9
def output_setup_end end
#output_started (private)
[ GitHub ]# File 'lib/test/unit/ui/emacs/testrunner.rb', line 12
def output_started end