67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# File 'lib/siyousho.rb', line 67
def run
with_info_handler do
time_it do
capture_exceptions do
Siyousho.current_test = self.name
Siyousho.screenshots = []
SETUP_METHODS.each do |hook|
self.send hook
end
proc = self.method(self.name).to_proc
hello_block = modify_proc(proc)
hello_block.call
end
TEARDOWN_METHODS.each do |hook|
capture_exceptions do
self.send hook
end
Siyousho.create_html
Siyousho.screenshots.clear
end
end
end
Result.from self end
|