cucumber-nagios 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- data/cucumber-nagios.gemspec +1 -1
- data/lib/cucumber/formatter/nagios.rb +9 -5
- data/lib/cucumber/nagios/version.rb +1 -1
- metadata +3 -3
data/cucumber-nagios.gemspec
CHANGED
@@ -32,6 +32,10 @@ module Cucumber
|
|
32
32
|
print_summary
|
33
33
|
end
|
34
34
|
|
35
|
+
def scenario_name(keyword, name, file_colon_line, source_indent)
|
36
|
+
@scenario_file_colon_line = file_colon_line
|
37
|
+
end
|
38
|
+
|
35
39
|
private
|
36
40
|
def print_summary
|
37
41
|
@total = @failed.size + @passed.size + @warning.size
|
@@ -45,8 +49,8 @@ module Cucumber
|
|
45
49
|
"time=#{@run_time}" ]
|
46
50
|
@message << "#{service_output.join(', ')} | #{performance_data.join('; ')}"
|
47
51
|
|
48
|
-
@failed.each do |keyword, step_match|
|
49
|
-
@message << "Failed: #{keyword}#{step_match.instance_variable_get("@name_to_match")} in #{step_match.file_colon_line}"
|
52
|
+
@failed.each do |keyword, step_match, scenario_file_colon_line|
|
53
|
+
@message << "Failed: #{keyword}#{step_match.instance_variable_get("@name_to_match")} in #{scenario_file_colon_line} on #{step_match.file_colon_line}"
|
50
54
|
end
|
51
55
|
|
52
56
|
message = @message.join("\n") + "\n"
|
@@ -59,11 +63,11 @@ module Cucumber
|
|
59
63
|
keyword = opts[:keyword]
|
60
64
|
case status
|
61
65
|
when :passed
|
62
|
-
@passed << [ keyword, step_match ]
|
66
|
+
@passed << [ keyword, step_match, @scenario_file_colon_line ]
|
63
67
|
when :failed
|
64
|
-
@failed << [ keyword, step_match ]
|
68
|
+
@failed << [ keyword, step_match, @scenario_file_colon_line ]
|
65
69
|
when :undefined
|
66
|
-
@warning << [ keyword, step_match ]
|
70
|
+
@warning << [ keyword, step_match, @scenario_file_colon_line ]
|
67
71
|
end
|
68
72
|
end
|
69
73
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-nagios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 8
|
10
|
+
version: 0.8.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lindsay Holmwood
|