auxesis-cucumber-nagios 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,21 +8,21 @@ module Nagios
|
|
8
8
|
|
9
9
|
def visit_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background)
|
10
10
|
super
|
11
|
-
name = "#{keyword} #{step_match.step_name}"
|
12
11
|
case status
|
13
12
|
when :passed
|
14
|
-
@passed <<
|
13
|
+
@passed << step_match
|
15
14
|
when :failed
|
16
|
-
@failed <<
|
15
|
+
@failed << step_match
|
17
16
|
end
|
18
17
|
end
|
18
|
+
|
19
19
|
def visit_steps(steps)
|
20
20
|
super
|
21
|
-
|
21
|
+
print_summary
|
22
22
|
end
|
23
23
|
|
24
24
|
private
|
25
|
-
def
|
25
|
+
def print_summary
|
26
26
|
@total = @failed.size + @passed.size
|
27
27
|
message = ""
|
28
28
|
message += "Critical: #{@failed.size}, "
|