Class: Webspicy::Tester::Reporter::Progress
Constant Summary
ErrorCount, HOOKS
Instance Attribute Summary
#io, #tester
Instance Method Summary
collapse
#find, #init, #initialize
colorize, colorize_error, colorize_highlight, colorize_section, colorize_success
Instance Method Details
#report ⇒ Object
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_done ⇒ Object
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
|