class Grntest::Reporters::StreamReporter

Public Class Methods

new(tester) click to toggle source
Calls superclass method Grntest::Reporters::BaseReporter::new
# File lib/grntest/reporters/stream-reporter.rb, line 21
def initialize(tester)
  super
end

Public Instance Methods

on_finish(result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 108
def on_finish(result)
  puts
  report_summary(result)
end
on_start(result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 25
def on_start(result)
end
on_suite_finish(worker) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 102
def on_suite_finish(worker)
end
on_suite_start(worker) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 31
def on_suite_start(worker)
  return unless single_worker?
  if worker.suite_name.bytesize <= @term_width
    puts(worker.suite_name)
  else
    puts(justify(worker.suite_name, @term_width))
  end
  @output.flush
end
on_test_failure(worker, result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 60
def on_test_failure(worker, result)
  synchronize do
    report_full_test_name(worker) unless single_worker?
    report_test_result(result, worker.status)
    report_failure(result)
  end
end
on_test_finish(worker, result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 99
def on_test_finish(worker, result)
end
on_test_leak(worker, result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 68
def on_test_leak(worker, result)
  synchronize do
    report_full_test_name(worker) unless single_worker?
    report_test_result(result, worker.status)
    report_actual(result) unless result.checked?
  end
end
on_test_no_check(worker, result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 91
def on_test_no_check(worker, result)
  synchronize do
    report_full_test_name(worker) unless single_worker?
    report_test_result(result, worker.status)
    report_actual(result)
  end
end
on_test_omission(worker, result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 76
def on_test_omission(worker, result)
  synchronize do
    report_full_test_name(worker) unless single_worker?
    report_test_result(result, worker.status)
    report_actual(result)
  end
end
on_test_omission_suppressed(worker, result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 84
def on_test_omission_suppressed(worker, result)
  synchronize do
    report_full_test_name(worker) unless single_worker?
    report_test_result(result, worker.status)
  end
end
on_test_start(worker) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 41
def on_test_start(worker)
  synchronize do
    if single_worker?
      print("  #{worker.test_name}")
    else
      report_full_test_name(worker)
      report_right_message("[start]")
    end
    @output.flush
  end
end
on_test_success(worker, result) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 53
def on_test_success(worker, result)
  synchronize do
    report_full_test_name(worker) unless single_worker?
    report_test_result(result, worker.status)
  end
end
on_worker_finish(worker_id) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 105
def on_worker_finish(worker_id)
end
on_worker_start(worker) click to toggle source
# File lib/grntest/reporters/stream-reporter.rb, line 28
def on_worker_start(worker)
end