Class: Webspicy::Tester::Reporter::Documentation
Defined Under Namespace
Modules: Helpers
Constant Summary
Constants included
from Helpers
Helpers::INDENT
ErrorCount, HOOKS
Instance Attribute Summary
#io, #tester
Instance Method Summary
collapse
Methods included from Helpers
#check_error_line, #check_failure_line, #check_success_line, #service_line, #spec_file_error_line, #spec_file_line
#find, #init, #initialize
colorize, colorize_error, colorize_highlight, colorize_section, colorize_success
Instance Method Details
#before_service ⇒ Object
53
54
55
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 53
def before_service
@test_case_seen = false
end
|
#before_test_case ⇒ Object
57
58
59
60
61
62
63
64
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 57
def before_test_case
@test_case_seen = true
io.puts spec_file_line(spec_file)
io.puts
io.flush
io.puts service_line(service, test_case)
io.flush
end
|
#check_error(check, ex) ⇒ Object
76
77
78
79
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 76
def check_error(check, ex)
io.puts check_error_line(check, ex)
io.flush
end
|
#check_failure(check, ex) ⇒ Object
71
72
73
74
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 71
def check_failure(check, ex)
io.puts check_failure_line(check, ex)
io.flush
end
|
#check_success(check) ⇒ Object
66
67
68
69
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 66
def check_success(check)
io.puts check_success_line(check)
io.flush
end
|
#service_done ⇒ Object
86
87
88
89
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 86
def service_done
io.puts if @test_case_seen
io.flush
end
|
#spec_file_error(e) ⇒ Object
45
46
47
48
49
50
51
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 45
def spec_file_error(e)
io.puts spec_file_line(spec_file)
io.puts
io.puts spec_file_error_line(spec_file, e)
io.puts
io.flush
end
|
#test_case_done ⇒ Object
81
82
83
84
|
# File 'lib/webspicy/tester/reporter/documentation.rb', line 81
def test_case_done
io.puts
io.flush
end
|