Sha256: 535da53560a460d4c2eea567973290f300b117d6778241456af9af6e7a231288
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
Contents
class TAPReporter < BaseReporter defm on_start(stats) end defm on_spec_start(meta, stats) end defm on_spec_end(meta, stats) end defm on_spec_pass(meta, stats) name = meta.get_sentence() duration_msg = self.get_duration_msg(meta) preamble = self.get_preamble('ok', stats.get_count(), meta.get_context()) self.writer.writeln("#{preamble} ##{name} #{duration_msg}") self.flush_log_buffer() end defm on_spec_failure(meta, err, stats) name = meta.get_sentence() preamble = self.get_preamble('not ok', stats.get_count(), meta.get_context()) self.writer.writeln("#{preamble} ##{name} - #{err}") self.flush_log_buffer() end defm on_spec_error(meta, err, stats) name = meta.get_sentence() preamble = self.get_preamble('not ok', stats.get_count(), meta.get_context()) self.writer.writeln("#{preamble} ##{name} - #{err}") self.flush_log_buffer() end defm on_spec_pending(meta, stats) end defm get_preamble(status, count, context) msg = "#{status} #{count} - #{context}" return msg end end
Version data entries
4 entries across 4 versions & 1 rubygems