Class: Webspicy::Tester::Reporter::Progress

Inherits:
Webspicy::Tester::Reporter show all
Defined in:
lib/webspicy/tester/reporter/progress.rb

Constant Summary

Constants inherited from Webspicy::Tester::Reporter

HOOKS

Instance Attribute Summary

Attributes inherited from Webspicy::Tester::Reporter

#io, #tester

Instance Method Summary collapse

Methods inherited from Webspicy::Tester::Reporter

#init, #initialize

Methods included from Support::Colorize

colorize, colorize_error, colorize_highlight, colorize_success

Constructor Details

This class inherits a constructor from Webspicy::Tester::Reporter

Instance Method Details

#after_each_doneObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/webspicy/tester/reporter/progress.rb', line 10

def after_each_done
  if result.success?
    io.print colorize_success(".")
  elsif result.failure?
    io.print colorize_error("F")
  elsif result.error?
    io.print colorize_error("E")
  end
  io.flush
end

#reportObject



21
22
23
24
25
# File 'lib/webspicy/tester/reporter/progress.rb', line 21

def report
  io.puts
  io.puts
  io.flush
end

#spec_file_error(e) ⇒ Object



6
7
8
# File 'lib/webspicy/tester/reporter/progress.rb', line 6

def spec_file_error(e)
  io.print colorize_error("X")
end