Sha256: b8875bc2751de9dec398f8c8977399d1be249a5939a112b4d426b28d788a5644
Contents?: true
Size: 748 Bytes
Versions: 32
Compression:
Stored size: 748 Bytes
Contents
require 'fivemat/elapsed_time' module Minitest class FivematReporter < Reporter include ElapsedTime def initialize(*args) super @class = nil end def record(result) if @class != result.klass if @class print_elapsed_time(io, @class_start_time) io.print "\n" end @class = result.klass @class_start_time = Time.now io.print "#@class " end end def report super print_elapsed_time(io, @class_start_time) if defined? @class_start_time end end def self.plugin_fivemat_init(options) if reporter.kind_of?(CompositeReporter) reporter.reporters.unshift(FivematReporter.new(options[:io], options)) end end end
Version data entries
32 entries across 32 versions & 4 rubygems