Sha256: 2e29da9a738660eecf4faddc62627ada1cc26b8b0d2cfc1179fd2f4711503b52
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
module Lemon # Generic Reporter class Reporter # def self.factory(format) format = format.to_sym if format case format when :verbose Reporters::Verbose.new else Reporters::DotProgress.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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lemon-0.5 | lib/lemon/reporter.rb |