Class: MiniTest::Reporters::RubyMateReporter
- Inherits:
-
Object
- Object
- MiniTest::Reporters::RubyMateReporter
show all
- Includes:
- MiniTest::Reporter
- Defined in:
- lib/minitest/reporters/ruby_mate_reporter.rb
Overview
Simple reporter designed for RubyMate.
Constant Summary
collapse
- INFO_PADDING =
2
Instance Method Summary
collapse
#after_suite, #after_test, #before_suite, #before_test, #filter_backtrace, #output, #pass, #print, #puts, #runner, #verbose?
Instance Method Details
#after_suites(suites, type)
39
40
41
42
43
44
45
46
47
48
|
# File 'lib/minitest/reporters/ruby_mate_reporter.rb', line 39
def after_suites(suites, type)
total_time = Time.now - runner.suites_start_time
puts
puts('Finished in %.5fs' % total_time)
print('%d tests, %d assertions, ' % [runner.test_count, runner.assertion_count])
print('%d failures, %d errors, ' % [runner.failures, runner.errors])
print('%d skips' % runner.skips)
puts
end
|
#before_suites(suites, type)
11
12
13
14
|
# File 'lib/minitest/reporters/ruby_mate_reporter.rb', line 11
def before_suites(suites, type)
puts 'Started'
puts
end
|
#error(suite, test, test_runner)
31
32
33
34
35
36
37
|
# File 'lib/minitest/reporters/ruby_mate_reporter.rb', line 31
def error(suite, test, test_runner)
print 'ERROR'
print_test_with_time(suite, test)
puts
print_info(test_runner.exception)
puts
end
|
#failure(suite, test, test_runner)
23
24
25
26
27
28
29
|
# File 'lib/minitest/reporters/ruby_mate_reporter.rb', line 23
def failure(suite, test, test_runner)
print 'FAIL'
print_test_with_time(suite, test)
puts
print_info(test_runner.exception, false)
puts
end
|
#skip(suite, test, test_runner)
16
17
18
19
20
21
|
# File 'lib/minitest/reporters/ruby_mate_reporter.rb', line 16
def skip(suite, test, test_runner)
print 'SKIP'
print_test_with_time(suite, test)
puts
puts
end
|