Sha256: 97d3b68e789c833c5c680854db31209e2f40809cbdfa5af7353e0dbfd78ba2ea
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
module Lemon module Reporters require 'lemon/reporter' # Generic Reporter class DotProgress < Reporter # def self.factory(format) case format.to_sym when :verbose VerboseReporter.new else new end end def report_start(suite) end def report_concern(concern) end def report_success(testunit) print "." end def report_failure(testunit, exception) #puts exception print "F" end def report_error(testunit, exception) #puts exception print "E" end def report_finish(successes, failures, errors) puts; puts failures.each do |testunit, exception| puts " #{testunit}" puts " #{exception}" puts end errors.each do |testunit, exception| puts " #{testunit}" puts " #{exception}" puts end total = successes.size + failures.size + errors.size puts "#{total} tests, #{failures.size} failures, #{errors.size} errors" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lemon-0.5 | lib/lemon/reporters/dotprogress.rb |