Parent

Class Index [+]

Quicksearch

Test::Unit::UI::Emacs::TestRunner

Private Instance Methods

format_fault(fault) click to toggle source

(Not documented)

# 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) click to toggle source

(Not documented)

# File lib/test/unit/ui/emacs/testrunner.rb, line 52
          def format_fault_error(error)
            result = "#{error.label}:\n"
            result << "#{error.test_name}:\n"
            result << "#{error.message}\n"
            result << error.backtrace.join("\n")
            result
          end
format_fault_failure(failure) click to toggle source

(Not documented)

# File lib/test/unit/ui/emacs/testrunner.rb, line 39
          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.message
            result
          end
output_fault_backtrace(fault) click to toggle source

(Not documented)

# File lib/test/unit/ui/emacs/testrunner.rb, line 25
          def output_fault_backtrace(fault)
            backtrace = fault.location
            if backtrace.size == 1
              output(fault.test_name +
                     backtrace[0].sub(/\A(.+:\d+).*/, ' [\\1]') +
                     ":")
            else
              output(fault.test_name)
              backtrace.each do |entry|
                output(entry)
              end
            end
          end
output_setup_end() click to toggle source

(Not documented)

# File lib/test/unit/ui/emacs/testrunner.rb, line 9
          def output_setup_end
          end
output_started() click to toggle source

(Not documented)

# File lib/test/unit/ui/emacs/testrunner.rb, line 12
          def output_started
          end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.