Sha256: 7d06f33267e3137ee04dd58e55dfff9ce3ffca2e779766738f50ebcd917856d3
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
require 'clio/facets/string' require 'clio/ansicode' module Quarry module Spec # = Reporter # # Serves as the base class for all other specification # output formats. # class Reporter ANSICode = Clio::ANSICode attr :steps attr :pass attr :fail attr :error def initialize @specs = 0 @steps = 0 @pass = [] @fail = [] @error = [] end def report_intro end def report_start(spec) @specs += 1 end def report_header(step) end def report_comment(step) end def report_mode(step) report_literal(step) end def report_step(step) @steps += 1 end def report_pass(step) @pass << step end def report_fail(step, assertion) @fail << [step, assertion] end def report_error(step, exception) raise exception if $DEBUG @error << [step, exception] end def report_end(spec) end def report_summary end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quarry-0.4.0 | lib/quarry/spec/reporter.rb |