Method: Minitest::Reporters::RubyMateReporter#record

Defined in:
lib/minitest/reporters/ruby_mate_reporter.rb

#record(test)



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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