Sha256: c544ebe4e875b119bf6ed7b64928379d92f1f2f3c8d489c7aa1e1f063731cf3f
Contents?: true
Size: 657 Bytes
Versions: 3
Compression:
Stored size: 657 Bytes
Contents
module Teabag module Formatters 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.2 | lib/teabag/formatters/base_formatter.rb |
teabag-0.3.1 | lib/teabag/formatters/base_formatter.rb |
teabag-0.3.0 | lib/teabag/formatters/base_formatter.rb |