Sha256: c5237e7a762c2e7ac64aa4fa8fc79c3591278dbbfb814a51c6434e8e02b66de7
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
module QED module Reporter #:nodoc: require 'qed/reporter/abstract' # = DotProgress Reporter # class DotProgress < Abstract # def before_session(session) @start_time = Time.now io.puts "Started" end # def before_code(step, file) super(step, file) io.print "." io.flush end # def after_session(session) io.puts "\nFinished in #{Time.now - @start_time} seconds.\n\n" @error.each do |step, exception| backtrace = clean_backtrace(exception.backtrace[0]) io.puts "***** ERROR *****".ansi(:red) io.puts "#{exception}" io.puts ":#{backtrace}:" #io.puts ":#{exception.backtrace[1]}:" #io.puts exception.backtrace[1..-1] if $VERBOSE io.puts end @fail.each do |step, assertion| backtrace = clean_backtrace(assertion.backtrace[0]) io.puts "***** FAIL *****".ansi(:red) io.puts "#{assertion}".ansi(:bold) io.puts ":#{backtrace}:" #io.puts assertion if $VERBOSE io.puts end io.puts "%s demos, %s steps, %s failures, %s errors" % [@demos, @steps, @fail.size, @error.size] #, @pass.size ] end end#class DotProgress end#module Reporter end#module QED
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qed-2.2.2 | lib/qed/reporter/dotprogress.rb |
qed-2.2.1 | lib/qed/reporter/dotprogress.rb |
qed-2.2.0 | lib/qed/reporter/dotprogress.rb |