Sha256: f0e4a396653bf480b8ba96fa72c53ae68c5f1596e696ec75d5be58d0f5f02bfa
Contents?: true
Size: 950 Bytes
Versions: 8
Compression:
Stored size: 950 Bytes
Contents
module Teabag module Formatters autoload :DotFormatter, 'teabag/formatters/dot_formatter' autoload :TapYFormatter, 'teabag/formatters/tap_y_formatter' autoload :SwayzeOrOprahFormatter, 'teabag/formatters/swayze_or_oprah_formatter' class BaseFormatter attr_accessor :total, :passes, :pendings, :failures, :errors def initialize(suite_name = :default) @suite_name = suite_name.to_s @total = 0 @passes = [] @pendings = [] @failures = [] @errors = [] end def spec(result) @total += 1 if result.passing? @passes << result elsif result.pending? @pendings << result else @failures << result end end # Exceptions come from startup errors in the server def exception(exception = {}) raise Teabag::RunnerException end end end end
Version data entries
8 entries across 8 versions & 1 rubygems