Sha256: 31d6bb07503216ad0ea5f4a3c9bead15d0a241901f1dded04613b6e6ca2829d8
Contents?: true
Size: 1.17 KB
Versions: 5
Compression:
Stored size: 1.17 KB
Contents
require 'yaml' module Turn require 'turn/reporter' # = Marshal Reporter # class MarshalReporter < Reporter #def start_suite(suite) # #@suite = suite # #@time = Time.now # #files = suite.collect{ |s| s.file }.join(' ') # #io.puts "Loaded suite #{suite.name}" # #io.puts "Started" #end #def start_test(test) # #if @file != test.file # # @file = test.file # # io.puts(test.file) # #end # io.print " %-69s" % test.name #end #def start_case(kase) # io.puts(kase.name) #end #def pass(message=nil) # io.puts " #{PASS}" # if message # message = ::ANSICode.magenta(message) if COLORIZE # io.puts(message.to_s) # end #end #def fail(message=nil) # io.puts(" #{FAIL}") # if message # message = ::ANSICode.magenta(message) if COLORIZE # io.puts(message.to_s) # end #end #def error(message=nil) # io.puts("#{ERROR}") # io.puts(message.to_s) if message #end #def finish_test(test) #end #def finish_case(kase) #end def finish_suite(suite) $stdout << suite.to_yaml end end end
Version data entries
5 entries across 5 versions & 2 rubygems