cucumber-formatters 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cucumber/formatter/failures.rb +10 -11
- data/spec/failures_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4c3a36577237cc0915fb9d38028bf7f2e230b8c
|
4
|
+
data.tar.gz: c8ab885482a088e5f5ba5cc7499c206a33d57f54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca6254156b24c79947261d57c6e197fada61237035445498bd93236e3518af7f1a57bebb86fca3d12c3c48a6a616f261d41820a9469ef33c4abada5d23e9ede
|
7
|
+
data.tar.gz: 08c7c848245ee922fa0465340563e6bec8eb50c22575bfe81bcb8469e4487354e8ba634225da3c7edee487f2b6043f7cadd491f885e7e4331426030c9b7a7957
|
@@ -33,7 +33,7 @@ module Cucumber
|
|
33
33
|
print_summary(features)
|
34
34
|
end
|
35
35
|
|
36
|
-
def before_feature(
|
36
|
+
def before_feature(_feature)
|
37
37
|
@background_failure = false
|
38
38
|
end
|
39
39
|
|
@@ -41,23 +41,23 @@ module Cucumber
|
|
41
41
|
@feature = "#{keyword}: #{name}"
|
42
42
|
end
|
43
43
|
|
44
|
-
def before_background(
|
44
|
+
def before_background(_background)
|
45
45
|
@in_background = true
|
46
46
|
end
|
47
47
|
|
48
|
-
def after_background(
|
48
|
+
def after_background(_background)
|
49
49
|
@in_background = false
|
50
50
|
end
|
51
51
|
|
52
|
-
def background_name(keyword, name,
|
52
|
+
def background_name(keyword, name, *_args)
|
53
53
|
@background = " #{keyword}: #{name}"
|
54
54
|
end
|
55
55
|
|
56
|
-
def scenario_name(keyword, name,
|
56
|
+
def scenario_name(keyword, name, *_args)
|
57
57
|
@scenario = " #{keyword}: #{name}"
|
58
58
|
end
|
59
59
|
|
60
|
-
def step_name(keyword, step_match,
|
60
|
+
def step_name(keyword, step_match, *_args)
|
61
61
|
@step = " #{keyword}#{step_match.format_args}"
|
62
62
|
end
|
63
63
|
|
@@ -72,17 +72,16 @@ module Cucumber
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def after_table_row(table_row)
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
end
|
75
|
+
return unless table_row.exception
|
76
|
+
@step = " Row: #{table_row.name}"
|
77
|
+
exception(table_row.exception, table_row.status, 6)
|
79
78
|
end
|
80
79
|
|
81
80
|
private
|
82
81
|
|
83
82
|
def print_scenario_summary
|
84
83
|
@io.puts @feature unless @feature.nil?
|
85
|
-
@io.puts
|
84
|
+
@io.puts @scenario ? @scenario : @background
|
86
85
|
@io.puts @step unless @step.nil?
|
87
86
|
@io.puts @table_row unless @table_row.nil?
|
88
87
|
|
data/spec/failures_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED