class Minitest::Reporters::RubyMateReporter

Simple reporter designed for RubyMate.

Constants

INFO_PADDING

Public Instance Methods

record(test) click to toggle source
# File lib/minitest/reporters/ruby_mate_reporter.rb, line 15
def record(test)
  super
  if test.skipped?
    print 'SKIP'
    print_test_with_time(test)
    puts
    puts
  elsif test.error?
    print 'ERROR'
    print_test_with_time(test)
    puts
    print_info(test.failure)
    puts
  elsif test.failure
    print 'FAIL'
    print_test_with_time(test)
    puts
    print_info(test.failure, false)
    puts
  end
end
report() click to toggle source
# File lib/minitest/reporters/ruby_mate_reporter.rb, line 37
def report
  super
  puts
  puts('Finished in %.5fs' % total_time)
  print('%d tests, %d assertions, ' % [count, assertions])
  print('%d failures, %d errors, ' % [failures, errors])
  print('%d skips' % skips)
  puts
end
start() click to toggle source
Calls superclass method
# File lib/minitest/reporters/ruby_mate_reporter.rb, line 9
def start
  super
  puts('Started with run options %s' % options[:args])
  puts
end

Private Instance Methods

print_test_with_time(test) click to toggle source