Sha256: d8e2c981ff3cd9b707c736398c4785a87e528ed8d2d65bd547a103ac23b5ed3f
Contents?: true
Size: 820 Bytes
Versions: 3
Compression:
Stored size: 820 Bytes
Contents
module Teabag module Formatters autoload :ProgressFormatter, 'teabag/formatters/progress_formatter' autoload :SwayzeOrOprahFormatter, 'teabag/formatters/swayze_or_oprah_formatter' class BaseFormatter attr_accessor :total, :passes, :pendings, :failures, :errors def initialize @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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.3.5 | lib/teabag/formatters/base_formatter.rb |
teabag-0.3.4 | lib/teabag/formatters/base_formatter.rb |
teabag-0.3.3 | lib/teabag/formatters/base_formatter.rb |