cucumber 9.0.2 → 9.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -8
- data/VERSION +1 -1
- data/lib/cucumber/cli/main.rb +1 -1
- data/lib/cucumber/cli/options.rb +37 -37
- data/lib/cucumber/cli/profile_loader.rb +5 -5
- data/lib/cucumber/configuration.rb +1 -1
- data/lib/cucumber/deprecate.rb +6 -47
- data/lib/cucumber/formatter/ansicolor.rb +18 -26
- data/lib/cucumber/formatter/ast_lookup.rb +14 -6
- data/lib/cucumber/formatter/console.rb +14 -9
- data/lib/cucumber/formatter/json.rb +2 -6
- data/lib/cucumber/formatter/junit.rb +1 -1
- data/lib/cucumber/formatter/message_builder.rb +19 -6
- data/lib/cucumber/formatter/pretty.rb +7 -3
- data/lib/cucumber/gherkin/formatter/ansi_escapes.rb +19 -20
- data/lib/cucumber/glue/invoke_in_world.rb +1 -1
- data/lib/cucumber/glue/proto_world.rb +17 -22
- data/lib/cucumber/glue/registry_and_more.rb +7 -4
- data/lib/cucumber/multiline_argument/data_table.rb +32 -33
- data/lib/cucumber/rake/task.rb +1 -5
- data/lib/cucumber/running_test_case.rb +1 -1
- data/lib/cucumber/runtime/for_programming_languages.rb +1 -2
- data/lib/cucumber/runtime/meta_message_builder.rb +2 -2
- data/lib/cucumber/runtime/user_interface.rb +2 -2
- data/lib/cucumber/runtime.rb +1 -1
- metadata +35 -241
- data/lib/autotest/cucumber.rb +0 -8
- data/lib/autotest/cucumber_mixin.rb +0 -133
- data/lib/autotest/cucumber_rails.rb +0 -8
- data/lib/autotest/cucumber_rails_rspec.rb +0 -8
- data/lib/autotest/cucumber_rails_rspec2.rb +0 -8
- data/lib/autotest/cucumber_rspec.rb +0 -8
- data/lib/autotest/cucumber_rspec2.rb +0 -8
- data/lib/autotest/discover.rb +0 -14
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: builder
|
@@ -58,100 +58,88 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 11.1.0
|
61
|
+
version: '12.0'
|
65
62
|
type: :runtime
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
66
|
- - "~>"
|
70
67
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: 11.1.0
|
68
|
+
version: '12.0'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: cucumber-cucumber-expressions
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
78
72
|
requirements:
|
79
73
|
- - "~>"
|
80
74
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
82
|
-
- - ">="
|
83
|
-
- !ruby/object:Gem::Version
|
84
|
-
version: 16.1.2
|
75
|
+
version: '17.0'
|
85
76
|
type: :runtime
|
86
77
|
prerelease: false
|
87
78
|
version_requirements: !ruby/object:Gem::Requirement
|
88
79
|
requirements:
|
89
80
|
- - "~>"
|
90
81
|
- !ruby/object:Gem::Version
|
91
|
-
version: '
|
92
|
-
- - ">="
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: 16.1.2
|
82
|
+
version: '17.0'
|
95
83
|
- !ruby/object:Gem::Dependency
|
96
84
|
name: cucumber-gherkin
|
97
85
|
requirement: !ruby/object:Gem::Requirement
|
98
86
|
requirements:
|
99
|
-
- - "
|
87
|
+
- - ">"
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '24'
|
102
90
|
- - "<"
|
103
91
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
92
|
+
version: '27'
|
105
93
|
type: :runtime
|
106
94
|
prerelease: false
|
107
95
|
version_requirements: !ruby/object:Gem::Requirement
|
108
96
|
requirements:
|
109
|
-
- - "
|
97
|
+
- - ">"
|
110
98
|
- !ruby/object:Gem::Version
|
111
99
|
version: '24'
|
112
100
|
- - "<"
|
113
101
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
102
|
+
version: '27'
|
115
103
|
- !ruby/object:Gem::Dependency
|
116
104
|
name: cucumber-html-formatter
|
117
105
|
requirement: !ruby/object:Gem::Requirement
|
118
106
|
requirements:
|
119
|
-
- - "
|
107
|
+
- - ">"
|
120
108
|
- !ruby/object:Gem::Version
|
121
|
-
version: '20.
|
122
|
-
- - "
|
109
|
+
version: '20.3'
|
110
|
+
- - "<"
|
123
111
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
112
|
+
version: '22'
|
125
113
|
type: :runtime
|
126
114
|
prerelease: false
|
127
115
|
version_requirements: !ruby/object:Gem::Requirement
|
128
116
|
requirements:
|
129
|
-
- - "
|
117
|
+
- - ">"
|
130
118
|
- !ruby/object:Gem::Version
|
131
|
-
version: '20.
|
132
|
-
- - "
|
119
|
+
version: '20.3'
|
120
|
+
- - "<"
|
133
121
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
122
|
+
version: '22'
|
135
123
|
- !ruby/object:Gem::Dependency
|
136
124
|
name: cucumber-messages
|
137
125
|
requirement: !ruby/object:Gem::Requirement
|
138
126
|
requirements:
|
139
|
-
- - "
|
127
|
+
- - ">"
|
140
128
|
- !ruby/object:Gem::Version
|
141
129
|
version: '19'
|
142
130
|
- - "<"
|
143
131
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
132
|
+
version: '25'
|
145
133
|
type: :runtime
|
146
134
|
prerelease: false
|
147
135
|
version_requirements: !ruby/object:Gem::Requirement
|
148
136
|
requirements:
|
149
|
-
- - "
|
137
|
+
- - ">"
|
150
138
|
- !ruby/object:Gem::Version
|
151
139
|
version: '19'
|
152
140
|
- - "<"
|
153
141
|
- !ruby/object:Gem::Version
|
154
|
-
version: '
|
142
|
+
version: '25'
|
155
143
|
- !ruby/object:Gem::Dependency
|
156
144
|
name: diff-lcs
|
157
145
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,9 +147,6 @@ dependencies:
|
|
159
147
|
- - "~>"
|
160
148
|
- !ruby/object:Gem::Version
|
161
149
|
version: '1.5'
|
162
|
-
- - ">="
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: 1.5.0
|
165
150
|
type: :runtime
|
166
151
|
prerelease: false
|
167
152
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -169,9 +154,6 @@ dependencies:
|
|
169
154
|
- - "~>"
|
170
155
|
- !ruby/object:Gem::Version
|
171
156
|
version: '1.5'
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: 1.5.0
|
175
157
|
- !ruby/object:Gem::Dependency
|
176
158
|
name: mini_mime
|
177
159
|
requirement: !ruby/object:Gem::Requirement
|
@@ -238,74 +220,42 @@ dependencies:
|
|
238
220
|
requirements:
|
239
221
|
- - "~>"
|
240
222
|
- !ruby/object:Gem::Version
|
241
|
-
version: '
|
223
|
+
version: '15.0'
|
242
224
|
type: :development
|
243
225
|
prerelease: false
|
244
226
|
version_requirements: !ruby/object:Gem::Requirement
|
245
227
|
requirements:
|
246
228
|
- - "~>"
|
247
229
|
- !ruby/object:Gem::Version
|
248
|
-
version: '
|
230
|
+
version: '15.0'
|
249
231
|
- !ruby/object:Gem::Dependency
|
250
232
|
name: nokogiri
|
251
233
|
requirement: !ruby/object:Gem::Requirement
|
252
234
|
requirements:
|
253
235
|
- - "~>"
|
254
236
|
- !ruby/object:Gem::Version
|
255
|
-
version: '1.
|
256
|
-
- - ">="
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
version: 1.13.6
|
237
|
+
version: '1.14'
|
259
238
|
type: :development
|
260
239
|
prerelease: false
|
261
240
|
version_requirements: !ruby/object:Gem::Requirement
|
262
241
|
requirements:
|
263
242
|
- - "~>"
|
264
243
|
- !ruby/object:Gem::Version
|
265
|
-
version: '1.
|
266
|
-
- - ">="
|
267
|
-
- !ruby/object:Gem::Version
|
268
|
-
version: 1.13.6
|
269
|
-
- !ruby/object:Gem::Dependency
|
270
|
-
name: pry
|
271
|
-
requirement: !ruby/object:Gem::Requirement
|
272
|
-
requirements:
|
273
|
-
- - "~>"
|
274
|
-
- !ruby/object:Gem::Version
|
275
|
-
version: '0.14'
|
276
|
-
- - ">="
|
277
|
-
- !ruby/object:Gem::Version
|
278
|
-
version: 0.14.1
|
279
|
-
type: :development
|
280
|
-
prerelease: false
|
281
|
-
version_requirements: !ruby/object:Gem::Requirement
|
282
|
-
requirements:
|
283
|
-
- - "~>"
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
version: '0.14'
|
286
|
-
- - ">="
|
287
|
-
- !ruby/object:Gem::Version
|
288
|
-
version: 0.14.1
|
244
|
+
version: '1.14'
|
289
245
|
- !ruby/object:Gem::Dependency
|
290
246
|
name: rake
|
291
247
|
requirement: !ruby/object:Gem::Requirement
|
292
248
|
requirements:
|
293
249
|
- - "~>"
|
294
250
|
- !ruby/object:Gem::Version
|
295
|
-
version: '13.
|
296
|
-
- - ">="
|
297
|
-
- !ruby/object:Gem::Version
|
298
|
-
version: 13.0.6
|
251
|
+
version: '13.1'
|
299
252
|
type: :development
|
300
253
|
prerelease: false
|
301
254
|
version_requirements: !ruby/object:Gem::Requirement
|
302
255
|
requirements:
|
303
256
|
- - "~>"
|
304
257
|
- !ruby/object:Gem::Version
|
305
|
-
version: '13.
|
306
|
-
- - ">="
|
307
|
-
- !ruby/object:Gem::Version
|
308
|
-
version: 13.0.6
|
258
|
+
version: '13.1'
|
309
259
|
- !ruby/object:Gem::Dependency
|
310
260
|
name: rspec
|
311
261
|
requirement: !ruby/object:Gem::Requirement
|
@@ -313,9 +263,6 @@ dependencies:
|
|
313
263
|
- - "~>"
|
314
264
|
- !ruby/object:Gem::Version
|
315
265
|
version: '3.12'
|
316
|
-
- - ">="
|
317
|
-
- !ruby/object:Gem::Version
|
318
|
-
version: 3.12.0
|
319
266
|
type: :development
|
320
267
|
prerelease: false
|
321
268
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -323,57 +270,39 @@ dependencies:
|
|
323
270
|
- - "~>"
|
324
271
|
- !ruby/object:Gem::Version
|
325
272
|
version: '3.12'
|
326
|
-
- - ">="
|
327
|
-
- !ruby/object:Gem::Version
|
328
|
-
version: 3.12.0
|
329
273
|
- !ruby/object:Gem::Dependency
|
330
274
|
name: rubocop
|
331
275
|
requirement: !ruby/object:Gem::Requirement
|
332
276
|
requirements:
|
333
277
|
- - "~>"
|
334
278
|
- !ruby/object:Gem::Version
|
335
|
-
version:
|
336
|
-
- - ">="
|
337
|
-
- !ruby/object:Gem::Version
|
338
|
-
version: 1.56.2
|
279
|
+
version: 1.56.4
|
339
280
|
type: :development
|
340
281
|
prerelease: false
|
341
282
|
version_requirements: !ruby/object:Gem::Requirement
|
342
283
|
requirements:
|
343
284
|
- - "~>"
|
344
285
|
- !ruby/object:Gem::Version
|
345
|
-
version:
|
346
|
-
- - ">="
|
347
|
-
- !ruby/object:Gem::Version
|
348
|
-
version: 1.56.2
|
286
|
+
version: 1.56.4
|
349
287
|
- !ruby/object:Gem::Dependency
|
350
288
|
name: rubocop-capybara
|
351
289
|
requirement: !ruby/object:Gem::Requirement
|
352
290
|
requirements:
|
353
291
|
- - "~>"
|
354
292
|
- !ruby/object:Gem::Version
|
355
|
-
version:
|
356
|
-
- - ">="
|
357
|
-
- !ruby/object:Gem::Version
|
358
|
-
version: 2.18.0
|
293
|
+
version: 2.19.0
|
359
294
|
type: :development
|
360
295
|
prerelease: false
|
361
296
|
version_requirements: !ruby/object:Gem::Requirement
|
362
297
|
requirements:
|
363
298
|
- - "~>"
|
364
299
|
- !ruby/object:Gem::Version
|
365
|
-
version:
|
366
|
-
- - ">="
|
367
|
-
- !ruby/object:Gem::Version
|
368
|
-
version: 2.18.0
|
300
|
+
version: 2.19.0
|
369
301
|
- !ruby/object:Gem::Dependency
|
370
302
|
name: rubocop-packaging
|
371
303
|
requirement: !ruby/object:Gem::Requirement
|
372
304
|
requirements:
|
373
305
|
- - "~>"
|
374
|
-
- !ruby/object:Gem::Version
|
375
|
-
version: '0.5'
|
376
|
-
- - ">="
|
377
306
|
- !ruby/object:Gem::Version
|
378
307
|
version: 0.5.2
|
379
308
|
type: :development
|
@@ -381,9 +310,6 @@ dependencies:
|
|
381
310
|
version_requirements: !ruby/object:Gem::Requirement
|
382
311
|
requirements:
|
383
312
|
- - "~>"
|
384
|
-
- !ruby/object:Gem::Version
|
385
|
-
version: '0.5'
|
386
|
-
- - ">="
|
387
313
|
- !ruby/object:Gem::Version
|
388
314
|
version: 0.5.2
|
389
315
|
- !ruby/object:Gem::Dependency
|
@@ -391,9 +317,6 @@ dependencies:
|
|
391
317
|
requirement: !ruby/object:Gem::Requirement
|
392
318
|
requirements:
|
393
319
|
- - "~>"
|
394
|
-
- !ruby/object:Gem::Version
|
395
|
-
version: '0.6'
|
396
|
-
- - ">="
|
397
320
|
- !ruby/object:Gem::Version
|
398
321
|
version: 0.6.0
|
399
322
|
type: :development
|
@@ -401,9 +324,6 @@ dependencies:
|
|
401
324
|
version_requirements: !ruby/object:Gem::Requirement
|
402
325
|
requirements:
|
403
326
|
- - "~>"
|
404
|
-
- !ruby/object:Gem::Version
|
405
|
-
version: '0.6'
|
406
|
-
- - ">="
|
407
327
|
- !ruby/object:Gem::Version
|
408
328
|
version: 0.6.0
|
409
329
|
- !ruby/object:Gem::Dependency
|
@@ -412,28 +332,19 @@ dependencies:
|
|
412
332
|
requirements:
|
413
333
|
- - "~>"
|
414
334
|
- !ruby/object:Gem::Version
|
415
|
-
version:
|
416
|
-
- - ">="
|
417
|
-
- !ruby/object:Gem::Version
|
418
|
-
version: 2.23.2
|
335
|
+
version: 2.25.0
|
419
336
|
type: :development
|
420
337
|
prerelease: false
|
421
338
|
version_requirements: !ruby/object:Gem::Requirement
|
422
339
|
requirements:
|
423
340
|
- - "~>"
|
424
341
|
- !ruby/object:Gem::Version
|
425
|
-
version:
|
426
|
-
- - ">="
|
427
|
-
- !ruby/object:Gem::Version
|
428
|
-
version: 2.23.2
|
342
|
+
version: 2.25.0
|
429
343
|
- !ruby/object:Gem::Dependency
|
430
344
|
name: simplecov
|
431
345
|
requirement: !ruby/object:Gem::Requirement
|
432
346
|
requirements:
|
433
347
|
- - "~>"
|
434
|
-
- !ruby/object:Gem::Version
|
435
|
-
version: '0.22'
|
436
|
-
- - ">="
|
437
348
|
- !ruby/object:Gem::Version
|
438
349
|
version: 0.22.0
|
439
350
|
type: :development
|
@@ -441,51 +352,8 @@ dependencies:
|
|
441
352
|
version_requirements: !ruby/object:Gem::Requirement
|
442
353
|
requirements:
|
443
354
|
- - "~>"
|
444
|
-
- !ruby/object:Gem::Version
|
445
|
-
version: '0.22'
|
446
|
-
- - ">="
|
447
355
|
- !ruby/object:Gem::Version
|
448
356
|
version: 0.22.0
|
449
|
-
- !ruby/object:Gem::Dependency
|
450
|
-
name: syntax
|
451
|
-
requirement: !ruby/object:Gem::Requirement
|
452
|
-
requirements:
|
453
|
-
- - "~>"
|
454
|
-
- !ruby/object:Gem::Version
|
455
|
-
version: '1.2'
|
456
|
-
- - ">="
|
457
|
-
- !ruby/object:Gem::Version
|
458
|
-
version: 1.2.2
|
459
|
-
type: :development
|
460
|
-
prerelease: false
|
461
|
-
version_requirements: !ruby/object:Gem::Requirement
|
462
|
-
requirements:
|
463
|
-
- - "~>"
|
464
|
-
- !ruby/object:Gem::Version
|
465
|
-
version: '1.2'
|
466
|
-
- - ">="
|
467
|
-
- !ruby/object:Gem::Version
|
468
|
-
version: 1.2.2
|
469
|
-
- !ruby/object:Gem::Dependency
|
470
|
-
name: test-unit
|
471
|
-
requirement: !ruby/object:Gem::Requirement
|
472
|
-
requirements:
|
473
|
-
- - "~>"
|
474
|
-
- !ruby/object:Gem::Version
|
475
|
-
version: '3.6'
|
476
|
-
- - ">="
|
477
|
-
- !ruby/object:Gem::Version
|
478
|
-
version: 3.6.1
|
479
|
-
type: :development
|
480
|
-
prerelease: false
|
481
|
-
version_requirements: !ruby/object:Gem::Requirement
|
482
|
-
requirements:
|
483
|
-
- - "~>"
|
484
|
-
- !ruby/object:Gem::Version
|
485
|
-
version: '3.6'
|
486
|
-
- - ">="
|
487
|
-
- !ruby/object:Gem::Version
|
488
|
-
version: 3.6.1
|
489
357
|
- !ruby/object:Gem::Dependency
|
490
358
|
name: webrick
|
491
359
|
requirement: !ruby/object:Gem::Requirement
|
@@ -493,9 +361,6 @@ dependencies:
|
|
493
361
|
- - "~>"
|
494
362
|
- !ruby/object:Gem::Version
|
495
363
|
version: '1.8'
|
496
|
-
- - ">="
|
497
|
-
- !ruby/object:Gem::Version
|
498
|
-
version: 1.8.1
|
499
364
|
type: :development
|
500
365
|
prerelease: false
|
501
366
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -503,69 +368,6 @@ dependencies:
|
|
503
368
|
- - "~>"
|
504
369
|
- !ruby/object:Gem::Version
|
505
370
|
version: '1.8'
|
506
|
-
- - ">="
|
507
|
-
- !ruby/object:Gem::Version
|
508
|
-
version: 1.8.1
|
509
|
-
- !ruby/object:Gem::Dependency
|
510
|
-
name: capybara
|
511
|
-
requirement: !ruby/object:Gem::Requirement
|
512
|
-
requirements:
|
513
|
-
- - "~>"
|
514
|
-
- !ruby/object:Gem::Version
|
515
|
-
version: '3.39'
|
516
|
-
- - ">="
|
517
|
-
- !ruby/object:Gem::Version
|
518
|
-
version: 3.39.2
|
519
|
-
type: :development
|
520
|
-
prerelease: false
|
521
|
-
version_requirements: !ruby/object:Gem::Requirement
|
522
|
-
requirements:
|
523
|
-
- - "~>"
|
524
|
-
- !ruby/object:Gem::Version
|
525
|
-
version: '3.39'
|
526
|
-
- - ">="
|
527
|
-
- !ruby/object:Gem::Version
|
528
|
-
version: 3.39.2
|
529
|
-
- !ruby/object:Gem::Dependency
|
530
|
-
name: rack-test
|
531
|
-
requirement: !ruby/object:Gem::Requirement
|
532
|
-
requirements:
|
533
|
-
- - "~>"
|
534
|
-
- !ruby/object:Gem::Version
|
535
|
-
version: '2.1'
|
536
|
-
- - ">="
|
537
|
-
- !ruby/object:Gem::Version
|
538
|
-
version: 2.1.0
|
539
|
-
type: :development
|
540
|
-
prerelease: false
|
541
|
-
version_requirements: !ruby/object:Gem::Requirement
|
542
|
-
requirements:
|
543
|
-
- - "~>"
|
544
|
-
- !ruby/object:Gem::Version
|
545
|
-
version: '2.1'
|
546
|
-
- - ">="
|
547
|
-
- !ruby/object:Gem::Version
|
548
|
-
version: 2.1.0
|
549
|
-
- !ruby/object:Gem::Dependency
|
550
|
-
name: sinatra
|
551
|
-
requirement: !ruby/object:Gem::Requirement
|
552
|
-
requirements:
|
553
|
-
- - "~>"
|
554
|
-
- !ruby/object:Gem::Version
|
555
|
-
version: '3.1'
|
556
|
-
- - ">="
|
557
|
-
- !ruby/object:Gem::Version
|
558
|
-
version: 3.1.0
|
559
|
-
type: :development
|
560
|
-
prerelease: false
|
561
|
-
version_requirements: !ruby/object:Gem::Requirement
|
562
|
-
requirements:
|
563
|
-
- - "~>"
|
564
|
-
- !ruby/object:Gem::Version
|
565
|
-
version: '3.1'
|
566
|
-
- - ">="
|
567
|
-
- !ruby/object:Gem::Version
|
568
|
-
version: 3.1.0
|
569
371
|
description: Behaviour Driven Development with elegance and joy
|
570
372
|
email: cukes@googlegroups.com
|
571
373
|
executables:
|
@@ -577,14 +379,6 @@ files:
|
|
577
379
|
- README.md
|
578
380
|
- VERSION
|
579
381
|
- bin/cucumber
|
580
|
-
- lib/autotest/cucumber.rb
|
581
|
-
- lib/autotest/cucumber_mixin.rb
|
582
|
-
- lib/autotest/cucumber_rails.rb
|
583
|
-
- lib/autotest/cucumber_rails_rspec.rb
|
584
|
-
- lib/autotest/cucumber_rails_rspec2.rb
|
585
|
-
- lib/autotest/cucumber_rspec.rb
|
586
|
-
- lib/autotest/cucumber_rspec2.rb
|
587
|
-
- lib/autotest/discover.rb
|
588
382
|
- lib/cucumber.rb
|
589
383
|
- lib/cucumber/cli/configuration.rb
|
590
384
|
- lib/cucumber/cli/main.rb
|
@@ -735,5 +529,5 @@ requirements: []
|
|
735
529
|
rubygems_version: 3.3.5
|
736
530
|
signing_key:
|
737
531
|
specification_version: 4
|
738
|
-
summary: cucumber-9.
|
532
|
+
summary: cucumber-9.1.2
|
739
533
|
test_files: []
|
data/lib/autotest/cucumber.rb
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'autotest'
|
4
|
-
require 'tempfile'
|
5
|
-
require 'cucumber'
|
6
|
-
require 'cucumber/cli/profile_loader'
|
7
|
-
|
8
|
-
module Autotest::CucumberMixin
|
9
|
-
def self.included(receiver)
|
10
|
-
receiver::ALL_HOOKS << %i[run_features ran_features]
|
11
|
-
end
|
12
|
-
|
13
|
-
attr_accessor :features_to_run
|
14
|
-
|
15
|
-
def initialize
|
16
|
-
super
|
17
|
-
reset_features
|
18
|
-
end
|
19
|
-
|
20
|
-
def run
|
21
|
-
hook :initialize
|
22
|
-
reset
|
23
|
-
reset_features
|
24
|
-
add_sigint_handler
|
25
|
-
|
26
|
-
loop do # ^c handler
|
27
|
-
wait_for_green
|
28
|
-
if tainted
|
29
|
-
rerun_all_tests
|
30
|
-
rerun_all_features if all_good
|
31
|
-
else
|
32
|
-
hook :all_good
|
33
|
-
end
|
34
|
-
wait_for_changes
|
35
|
-
# Once tests and features are green, reset features every
|
36
|
-
# time a file is changed to see if anything breaks.
|
37
|
-
reset_features
|
38
|
-
rescue Interrupt
|
39
|
-
break if wants_to_quit
|
40
|
-
|
41
|
-
reset
|
42
|
-
reset_features
|
43
|
-
end
|
44
|
-
hook :quit
|
45
|
-
end
|
46
|
-
|
47
|
-
def all_features_good
|
48
|
-
features_to_run == ''
|
49
|
-
end
|
50
|
-
|
51
|
-
def wait_for_green
|
52
|
-
loop do
|
53
|
-
super
|
54
|
-
run_features
|
55
|
-
wait_for_changes unless all_features_good
|
56
|
-
break if all_features_good
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def rerun_all_features
|
61
|
-
reset_features
|
62
|
-
run_features
|
63
|
-
end
|
64
|
-
|
65
|
-
def reset_features
|
66
|
-
self.features_to_run = :all
|
67
|
-
end
|
68
|
-
|
69
|
-
def run_features
|
70
|
-
hook :run_features
|
71
|
-
Tempfile.open('autotest-cucumber') do |dirty_features_file|
|
72
|
-
cmd = make_cucumber_cmd(features_to_run, dirty_features_file.path)
|
73
|
-
break if cmd.empty?
|
74
|
-
|
75
|
-
old_sync = $stdout.sync
|
76
|
-
$stdout.sync = true
|
77
|
-
self.results = []
|
78
|
-
line = []
|
79
|
-
begin
|
80
|
-
open("| #{cmd}", 'r') do |f| # rubocop:disable Security/Open
|
81
|
-
until f.eof?
|
82
|
-
c = f.getc || break
|
83
|
-
print(c)
|
84
|
-
line << c
|
85
|
-
next unless c == "\n"
|
86
|
-
|
87
|
-
results << line.join
|
88
|
-
line.clear
|
89
|
-
end
|
90
|
-
end
|
91
|
-
ensure
|
92
|
-
$stdout.sync = old_sync
|
93
|
-
end
|
94
|
-
self.features_to_run = dirty_features_file.read.strip
|
95
|
-
self.tainted = true unless features_to_run == ''
|
96
|
-
end
|
97
|
-
hook :ran_features
|
98
|
-
end
|
99
|
-
|
100
|
-
def make_cucumber_cmd(features_to_run, _dirty_features_filename)
|
101
|
-
return '' if features_to_run.empty?
|
102
|
-
|
103
|
-
profile_loader = Cucumber::Cli::ProfileLoader.new
|
104
|
-
|
105
|
-
profile = profile(profile_loader)
|
106
|
-
|
107
|
-
args = created_args(features_to_run, profile)
|
108
|
-
|
109
|
-
"#{Cucumber::RUBY_BINARY} #{Cucumber::BINARY} #{args}"
|
110
|
-
end
|
111
|
-
|
112
|
-
def profile(profile_loader)
|
113
|
-
profile ||= 'autotest-all' if profile_loader.profile?('autotest-all') && features_to_run == :all
|
114
|
-
profile ||= 'autotest' if profile_loader.profile?('autotest')
|
115
|
-
profile || nil
|
116
|
-
end
|
117
|
-
|
118
|
-
def created_args(features_to_run, profile)
|
119
|
-
args = if profile
|
120
|
-
['--profile', profile]
|
121
|
-
else
|
122
|
-
%w[--format] << (features_to_run == :all ? 'progress' : 'pretty')
|
123
|
-
end
|
124
|
-
# No --color option as some IDEs (Netbeans) don't output them very well ([31m1 failed step[0m)
|
125
|
-
args += %w[--format rerun --out] << dirty_features_filename
|
126
|
-
args << (features_to_run == :all ? '' : features_to_run)
|
127
|
-
|
128
|
-
# All steps becom undefined during rerun unless the following is run.
|
129
|
-
args << 'features/step_definitions' << 'features/support' unless features_to_run == :all
|
130
|
-
|
131
|
-
args.join(' ')
|
132
|
-
end
|
133
|
-
end
|