class Grntest::Reporters::MarkReporter
Public Class Methods
Source
# File lib/grntest/reporters/mark-reporter.rb, line 22 def initialize(tester) super end
Calls superclass method
Grntest::Reporters::BaseReporter::new
Public Instance Methods
Source
# File lib/grntest/reporters/mark-reporter.rb, line 99 def on_finish(result) print_new_line print_new_line report_summary(result) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 26 def on_start(result) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 93 def on_suite_finish(worker) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 32 def on_suite_start(worker) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 44 def on_test_failure(worker, result) synchronize do report_test_result_mark("F", result) print_new_line report_test(worker, result) report_failure(result) end end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 90 def on_test_finish(worker, result) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 53 def on_test_leak(worker, result) synchronize do report_test_result_mark("L(#{result.n_leaked_objects})", result) print_new_line report_test(worker, result) if result.checked? report_actual(result) else report_marker(result) end end end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 81 def on_test_no_check(worker, result) synchronize do report_test_result_mark("N", result) print_new_line report_test(worker, result) report_actual(result) end end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 66 def on_test_omission(worker, result) synchronize do report_test_result_mark("O", result) print_new_line report_test(worker, result) report_actual(result) end end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 75 def on_test_omission_suppressed(worker, result) synchronize do report_test_result_mark("O", result) end end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 35 def on_test_start(worker) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 38 def on_test_success(worker, result) synchronize do report_test_result_mark(".", result) end end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 96 def on_worker_finish(worker_id) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 29 def on_worker_start(worker) end
Private Instance Methods
Source
# File lib/grntest/reporters/mark-reporter.rb, line 126 def flush_mark @output.flush end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 122 def print_mark(mark) print(mark) end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 118 def print_new_line puts end
Source
# File lib/grntest/reporters/mark-reporter.rb, line 106 def report_test_result_mark(mark, result) if @term_width < @current_column + mark.bytesize print_new_line end print_mark(colorize(mark, result)) if @term_width <= @current_column print_new_line else flush_mark end end