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

ErrorCount, HOOKS

Instance Attribute Summary

Attributes inherited from Webspicy::Tester::Reporter

#io, #tester

Instance Method Summary collapse

Methods inherited from Webspicy::Tester::Reporter

#find, #init, #initialize

Methods included from Support::Colorize

colorize, colorize_error, colorize_highlight, colorize_section, colorize_success

Constructor Details

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

Instance Method Details

#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", config)
end

#test_case_doneObject



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

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