cucumber 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,4 +1,6 @@
1
- ## [1.3.x latest](https://github.com/cucumber/cucumber/compare/v1.3.3...v1.3.x-bugfix)
1
+ ## [1.3.x latest](https://github.com/cucumber/cucumber/compare/v1.3.3...v1.3.4)
2
+
3
+ * JUnit formatter fixed to report skipped scenarios correctly ([496](https://github.com/cucumber/cucumber/issues/496) @ambirag)
2
4
 
3
5
  ## [1.3.3](https://github.com/cucumber/cucumber/compare/v1.3.2...v1.3.3)
4
6
 
@@ -130,21 +130,19 @@ module Cucumber
130
130
  @time += duration
131
131
  classname = @feature_name
132
132
  name = "#{@scenario}#{suffix}"
133
- pending = [:pending, :undefined].include?(status)
134
- passed = (status == :passed || (pending && !@options[:strict]))
133
+ pending = [:pending, :undefined].include?(status) && (!@options[:strict])
135
134
 
136
135
  @builder.testcase(:classname => classname, :name => name, :time => "%.6f" % duration) do
137
- unless passed
136
+ if status == :skipped || pending
137
+ @builder.skipped
138
+ @skipped += 1
139
+ elsif status != :passed
138
140
  @builder.failure(:message => "#{status.to_s} #{name}", :type => status.to_s) do
139
141
  @builder.cdata! @output
140
142
  @builder.cdata!(format_exception(exception)) if exception
141
143
  end
142
144
  @failures += 1
143
145
  end
144
- if passed and (status == :skipped || pending)
145
- @builder.skipped
146
- @skipped += 1
147
- end
148
146
  @builder.tag!('system-out')
149
147
  @builder.tag!('system-err')
150
148
  end
@@ -4,7 +4,7 @@ require 'rbconfig'
4
4
 
5
5
  module Cucumber
6
6
  unless defined?(Cucumber::VERSION)
7
- VERSION = '1.3.3'
7
+ VERSION = '1.3.4'
8
8
  BINARY = File.expand_path(File.dirname(__FILE__) + '/../../bin/cucumber')
9
9
  LIBDIR = File.expand_path(File.dirname(__FILE__) + '/../../lib')
10
10
  JRUBY = defined?(JRUBY_VERSION)
@@ -146,6 +146,22 @@ module Cucumber::Formatter
146
146
  it { @doc.to_s.should_not =~ /type="skipped"/}
147
147
  end
148
148
 
149
+ describe "scenario with skipped test in junit report" do
150
+ define_feature <<-FEATURE
151
+ Feature: junit report with skipped test
152
+
153
+ Scenario Outline: skip a test and junit report of the same
154
+ Given a <skip> scenario
155
+
156
+ Examples:
157
+ | skip |
158
+ | undefined |
159
+ | undefined |
160
+ FEATURE
161
+
162
+ it { @doc.to_s.should =~ /skipped="2"/}
163
+ end
164
+
149
165
  describe "with a regular data table scenario" do
150
166
  define_steps do
151
167
  Given(/the following items on a shortlist/) { |table| }
metadata CHANGED
@@ -1,46 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Aslak Hellesøy
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-07 00:00:00.000000000 Z
12
+ date: 2013-07-12 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: builder
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: 2.1.2
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: 2.1.2
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: diff-lcs
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: 1.1.3
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: 1.1.3
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: gherkin
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,6 +62,7 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: multi_json
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
@@ -62,6 +70,7 @@ dependencies:
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
@@ -69,6 +78,7 @@ dependencies:
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: multi_test
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :runtime
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
@@ -83,6 +94,7 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: aruba
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
@@ -90,6 +102,7 @@ dependencies:
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
@@ -97,6 +110,7 @@ dependencies:
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: json
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ~>
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ~>
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: nokogiri
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ~>
116
132
  - !ruby/object:Gem::Version
@@ -118,6 +134,7 @@ dependencies:
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ~>
123
140
  - !ruby/object:Gem::Version
@@ -125,76 +142,87 @@ dependencies:
125
142
  - !ruby/object:Gem::Dependency
126
143
  name: rake
127
144
  requirement: !ruby/object:Gem::Requirement
145
+ none: false
128
146
  requirements:
129
- - - '>='
147
+ - - ! '>='
130
148
  - !ruby/object:Gem::Version
131
149
  version: 0.9.2
132
150
  type: :development
133
151
  prerelease: false
134
152
  version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
135
154
  requirements:
136
- - - '>='
155
+ - - ! '>='
137
156
  - !ruby/object:Gem::Version
138
157
  version: 0.9.2
139
158
  - !ruby/object:Gem::Dependency
140
159
  name: rspec
141
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
142
162
  requirements:
143
- - - '>='
163
+ - - ! '>='
144
164
  - !ruby/object:Gem::Version
145
165
  version: '2.13'
146
166
  type: :development
147
167
  prerelease: false
148
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
149
170
  requirements:
150
- - - '>='
171
+ - - ! '>='
151
172
  - !ruby/object:Gem::Version
152
173
  version: '2.13'
153
174
  - !ruby/object:Gem::Dependency
154
175
  name: simplecov
155
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
156
178
  requirements:
157
- - - '>='
179
+ - - ! '>='
158
180
  - !ruby/object:Gem::Version
159
181
  version: 0.6.2
160
182
  type: :development
161
183
  prerelease: false
162
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
163
186
  requirements:
164
- - - '>='
187
+ - - ! '>='
165
188
  - !ruby/object:Gem::Version
166
189
  version: 0.6.2
167
190
  - !ruby/object:Gem::Dependency
168
191
  name: spork
169
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
170
194
  requirements:
171
- - - '>='
195
+ - - ! '>='
172
196
  - !ruby/object:Gem::Version
173
197
  version: 1.0.0.rc2
174
198
  type: :development
175
199
  prerelease: false
176
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
177
202
  requirements:
178
- - - '>='
203
+ - - ! '>='
179
204
  - !ruby/object:Gem::Version
180
205
  version: 1.0.0.rc2
181
206
  - !ruby/object:Gem::Dependency
182
207
  name: syntax
183
208
  requirement: !ruby/object:Gem::Requirement
209
+ none: false
184
210
  requirements:
185
- - - '>='
211
+ - - ! '>='
186
212
  - !ruby/object:Gem::Version
187
213
  version: 1.0.0
188
214
  type: :development
189
215
  prerelease: false
190
216
  version_requirements: !ruby/object:Gem::Requirement
217
+ none: false
191
218
  requirements:
192
- - - '>='
219
+ - - ! '>='
193
220
  - !ruby/object:Gem::Version
194
221
  version: 1.0.0
195
222
  - !ruby/object:Gem::Dependency
196
223
  name: bcat
197
224
  requirement: !ruby/object:Gem::Requirement
225
+ none: false
198
226
  requirements:
199
227
  - - ~>
200
228
  - !ruby/object:Gem::Version
@@ -202,6 +230,7 @@ dependencies:
202
230
  type: :development
203
231
  prerelease: false
204
232
  version_requirements: !ruby/object:Gem::Requirement
233
+ none: false
205
234
  requirements:
206
235
  - - ~>
207
236
  - !ruby/object:Gem::Version
@@ -209,6 +238,7 @@ dependencies:
209
238
  - !ruby/object:Gem::Dependency
210
239
  name: kramdown
211
240
  requirement: !ruby/object:Gem::Requirement
241
+ none: false
212
242
  requirements:
213
243
  - - ~>
214
244
  - !ruby/object:Gem::Version
@@ -216,6 +246,7 @@ dependencies:
216
246
  type: :development
217
247
  prerelease: false
218
248
  version_requirements: !ruby/object:Gem::Requirement
249
+ none: false
219
250
  requirements:
220
251
  - - ~>
221
252
  - !ruby/object:Gem::Version
@@ -223,6 +254,7 @@ dependencies:
223
254
  - !ruby/object:Gem::Dependency
224
255
  name: yard
225
256
  requirement: !ruby/object:Gem::Requirement
257
+ none: false
226
258
  requirements:
227
259
  - - ~>
228
260
  - !ruby/object:Gem::Version
@@ -230,6 +262,7 @@ dependencies:
230
262
  type: :development
231
263
  prerelease: false
232
264
  version_requirements: !ruby/object:Gem::Requirement
265
+ none: false
233
266
  requirements:
234
267
  - - ~>
235
268
  - !ruby/object:Gem::Version
@@ -237,8 +270,9 @@ dependencies:
237
270
  - !ruby/object:Gem::Dependency
238
271
  name: capybara
239
272
  requirement: !ruby/object:Gem::Requirement
273
+ none: false
240
274
  requirements:
241
- - - '>='
275
+ - - ! '>='
242
276
  - !ruby/object:Gem::Version
243
277
  version: 1.1.2
244
278
  - - <
@@ -247,8 +281,9 @@ dependencies:
247
281
  type: :development
248
282
  prerelease: false
249
283
  version_requirements: !ruby/object:Gem::Requirement
284
+ none: false
250
285
  requirements:
251
- - - '>='
286
+ - - ! '>='
252
287
  - !ruby/object:Gem::Version
253
288
  version: 1.1.2
254
289
  - - <
@@ -257,57 +292,65 @@ dependencies:
257
292
  - !ruby/object:Gem::Dependency
258
293
  name: rack-test
259
294
  requirement: !ruby/object:Gem::Requirement
295
+ none: false
260
296
  requirements:
261
- - - '>='
297
+ - - ! '>='
262
298
  - !ruby/object:Gem::Version
263
299
  version: 0.6.1
264
300
  type: :development
265
301
  prerelease: false
266
302
  version_requirements: !ruby/object:Gem::Requirement
303
+ none: false
267
304
  requirements:
268
- - - '>='
305
+ - - ! '>='
269
306
  - !ruby/object:Gem::Version
270
307
  version: 0.6.1
271
308
  - !ruby/object:Gem::Dependency
272
309
  name: ramaze
273
310
  requirement: !ruby/object:Gem::Requirement
311
+ none: false
274
312
  requirements:
275
- - - '>='
313
+ - - ! '>='
276
314
  - !ruby/object:Gem::Version
277
315
  version: '0'
278
316
  type: :development
279
317
  prerelease: false
280
318
  version_requirements: !ruby/object:Gem::Requirement
319
+ none: false
281
320
  requirements:
282
- - - '>='
321
+ - - ! '>='
283
322
  - !ruby/object:Gem::Version
284
323
  version: '0'
285
324
  - !ruby/object:Gem::Dependency
286
325
  name: sinatra
287
326
  requirement: !ruby/object:Gem::Requirement
327
+ none: false
288
328
  requirements:
289
- - - '>='
329
+ - - ! '>='
290
330
  - !ruby/object:Gem::Version
291
331
  version: 1.3.2
292
332
  type: :development
293
333
  prerelease: false
294
334
  version_requirements: !ruby/object:Gem::Requirement
335
+ none: false
295
336
  requirements:
296
- - - '>='
337
+ - - ! '>='
297
338
  - !ruby/object:Gem::Version
298
339
  version: 1.3.2
299
340
  - !ruby/object:Gem::Dependency
300
341
  name: webrat
301
342
  requirement: !ruby/object:Gem::Requirement
343
+ none: false
302
344
  requirements:
303
- - - '>='
345
+ - - ! '>='
304
346
  - !ruby/object:Gem::Version
305
347
  version: 0.7.3
306
348
  type: :development
307
349
  prerelease: false
308
350
  version_requirements: !ruby/object:Gem::Requirement
351
+ none: false
309
352
  requirements:
310
- - - '>='
353
+ - - ! '>='
311
354
  - !ruby/object:Gem::Version
312
355
  version: 0.7.3
313
356
  description: Behaviour Driven Development with elegance and joy
@@ -907,109 +950,34 @@ files:
907
950
  - spec/spec_helper.rb
908
951
  homepage: http://cukes.info
909
952
  licenses: []
910
- metadata: {}
911
953
  post_install_message:
912
954
  rdoc_options:
913
955
  - --charset=UTF-8
914
956
  require_paths:
915
957
  - lib
916
958
  required_ruby_version: !ruby/object:Gem::Requirement
959
+ none: false
917
960
  requirements:
918
- - - '>='
961
+ - - ! '>='
919
962
  - !ruby/object:Gem::Version
920
963
  version: '0'
964
+ segments:
965
+ - 0
966
+ hash: 843321555515492776
921
967
  required_rubygems_version: !ruby/object:Gem::Requirement
968
+ none: false
922
969
  requirements:
923
- - - '>='
970
+ - - ! '>='
924
971
  - !ruby/object:Gem::Version
925
972
  version: '0'
973
+ segments:
974
+ - 0
975
+ hash: 843321555515492776
926
976
  requirements: []
927
977
  rubyforge_project:
928
- rubygems_version: 2.0.3
978
+ rubygems_version: 1.8.25
929
979
  signing_key:
930
- specification_version: 4
931
- summary: cucumber-1.3.3
932
- test_files:
933
- - features/assertions.feature
934
- - features/background.feature
935
- - features/backtraces.feature
936
- - features/before_hook.feature
937
- - features/bootstrap.feature
938
- - features/custom_formatter.feature
939
- - features/doc_strings.feature
940
- - features/drb_server_integration.feature
941
- - features/execute_with_tag_filter.feature
942
- - features/formatter_callbacks.feature
943
- - features/formatter_step_file_colon_line.feature
944
- - features/html_formatter.feature
945
- - features/iso-8859-1.feature
946
- - features/json_formatter.feature
947
- - features/load_path.feature
948
- - features/nested_steps.feature
949
- - features/nested_steps_i18n.feature
950
- - features/nested_steps_with_second_arg.feature
951
- - features/parsing.feature
952
- - features/pretty_formatter.feature
953
- - features/progress_formatter.feature
954
- - features/raketask.feature
955
- - features/rerun_formatter.feature
956
- - features/run_specific_scenarios.feature
957
- - features/stats_formatters.feature
958
- - features/step_definitions.feature
959
- - features/step_definitions/cucumber-features/cucumber_ruby_mappings.rb
960
- - features/step_definitions/cucumber_steps.rb
961
- - features/step_definitions/drb_steps.rb
962
- - features/step_definitions/iso-8859-1_steps.rb
963
- - features/support/env.rb
964
- - features/support/feature_factory.rb
965
- - features/tagged_hooks.feature
966
- - features/transforms.feature
967
- - spec/cucumber/ast/background_spec.rb
968
- - spec/cucumber/ast/doc_string_spec.rb
969
- - spec/cucumber/ast/feature_factory.rb
970
- - spec/cucumber/ast/feature_spec.rb
971
- - spec/cucumber/ast/features_spec.rb
972
- - spec/cucumber/ast/outline_table_spec.rb
973
- - spec/cucumber/ast/scenario_outline_spec.rb
974
- - spec/cucumber/ast/step_spec.rb
975
- - spec/cucumber/ast/table_spec.rb
976
- - spec/cucumber/ast/tree_walker_spec.rb
977
- - spec/cucumber/broadcaster_spec.rb
978
- - spec/cucumber/cli/configuration_spec.rb
979
- - spec/cucumber/cli/drb_client_spec.rb
980
- - spec/cucumber/cli/main_spec.rb
981
- - spec/cucumber/cli/options_spec.rb
982
- - spec/cucumber/cli/profile_loader_spec.rb
983
- - spec/cucumber/configuration_spec.rb
984
- - spec/cucumber/constantize_spec.rb
985
- - spec/cucumber/core_ext/proc_spec.rb
986
- - spec/cucumber/formatter/ansicolor_spec.rb
987
- - spec/cucumber/formatter/duration_spec.rb
988
- - spec/cucumber/formatter/html_spec.rb
989
- - spec/cucumber/formatter/interceptor_spec.rb
990
- - spec/cucumber/formatter/junit_spec.rb
991
- - spec/cucumber/formatter/pretty_spec.rb
992
- - spec/cucumber/formatter/progress_spec.rb
993
- - spec/cucumber/formatter/spec_helper.rb
994
- - spec/cucumber/rake/forked_spec.rb
995
- - spec/cucumber/rake/rcov_spec.rb
996
- - spec/cucumber/rb_support/rb_language_spec.rb
997
- - spec/cucumber/rb_support/rb_step_definition_spec.rb
998
- - spec/cucumber/rb_support/rb_transform_spec.rb
999
- - spec/cucumber/rb_support/regexp_argument_matcher_spec.rb
1000
- - spec/cucumber/rb_support/snippet_spec.rb
1001
- - spec/cucumber/runtime/for_programming_languages_spec.rb
1002
- - spec/cucumber/runtime/results_spec.rb
1003
- - spec/cucumber/runtime/support_code_spec.rb
1004
- - spec/cucumber/runtime_spec.rb
1005
- - spec/cucumber/sell_cucumbers.feature
1006
- - spec/cucumber/step_match_spec.rb
1007
- - spec/cucumber/wire_support/configuration_spec.rb
1008
- - spec/cucumber/wire_support/connection_spec.rb
1009
- - spec/cucumber/wire_support/wire_exception_spec.rb
1010
- - spec/cucumber/wire_support/wire_language_spec.rb
1011
- - spec/cucumber/wire_support/wire_packet_spec.rb
1012
- - spec/cucumber/wire_support/wire_step_definition_spec.rb
1013
- - spec/cucumber/world/pending_spec.rb
1014
- - spec/spec_helper.rb
980
+ specification_version: 3
981
+ summary: cucumber-1.3.4
982
+ test_files: []
1015
983
  has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: d7e54c4793cfc940226a5267fefc1d97a1aa96bc
4
- data.tar.gz: ca619e89d28abf2905cb8734762a47b9ef5d12c4
5
- SHA512:
6
- metadata.gz: d3b1bc0739c3605a10c634adffd1fdeb1bd7dc69e20a913bcd3e14f2ceffb82d2346c338a9f94163a912cddccac120c84cf28d0fdf4f4a68afa4ccb16221c7ea
7
- data.tar.gz: a68103d62fa10eeb6e2352f756b27aa7470b9d46b1f5a18b30a52e5d455fb9bb4b360a7300caefd7930f9b4c3622fc0e79a934d1e973233befa73432f54dc0f1