cucumber-core 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -1
- data/README.md +1 -2
- data/lib/cucumber/core/compiler.rb +23 -21
- data/lib/cucumber/core/event_bus.rb +1 -1
- data/lib/cucumber/core/gherkin/parser.rb +4 -5
- data/lib/cucumber/core/version.rb +1 -1
- data/spec/capture_warnings.rb +74 -0
- data/spec/coverage.rb +11 -0
- data/spec/cucumber/core/compiler_spec.rb +178 -0
- data/spec/cucumber/core/event_bus_spec.rb +163 -0
- data/spec/cucumber/core/event_spec.rb +40 -0
- data/spec/cucumber/core/filter_spec.rb +101 -0
- data/spec/cucumber/core/gherkin/parser_spec.rb +95 -0
- data/spec/cucumber/core/gherkin/writer_spec.rb +333 -0
- data/spec/cucumber/core/report/summary_spec.rb +167 -0
- data/spec/cucumber/core/test/action_spec.rb +154 -0
- data/spec/cucumber/core/test/case_spec.rb +126 -0
- data/spec/cucumber/core/test/data_table_spec.rb +81 -0
- data/spec/cucumber/core/test/doc_string_spec.rb +114 -0
- data/spec/cucumber/core/test/duration_matcher.rb +20 -0
- data/spec/cucumber/core/test/empty_multiline_argument_spec.rb +28 -0
- data/spec/cucumber/core/test/filters/locations_filter_spec.rb +271 -0
- data/spec/cucumber/core/test/location_spec.rb +126 -0
- data/spec/cucumber/core/test/result_spec.rb +474 -0
- data/spec/cucumber/core/test/runner_spec.rb +318 -0
- data/spec/cucumber/core/test/step_spec.rb +87 -0
- data/spec/cucumber/core/test/timer_spec.rb +25 -0
- data/spec/cucumber/core_spec.rb +262 -0
- data/spec/report_api_spy.rb +25 -0
- metadata +83 -14
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
class ReportAPISpy
|
3
|
+
def initialize
|
4
|
+
@result = []
|
5
|
+
end
|
6
|
+
|
7
|
+
def test_case(*args)
|
8
|
+
@result << [:test_case, *args]
|
9
|
+
yield self if block_given?
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_step(*args)
|
13
|
+
@result << [:test_step, *args]
|
14
|
+
yield self if block_given?
|
15
|
+
end
|
16
|
+
|
17
|
+
def done(*args)
|
18
|
+
@result << [:done, *args]
|
19
|
+
yield self if block_given?
|
20
|
+
end
|
21
|
+
|
22
|
+
def messages
|
23
|
+
@result.map(&:first)
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: gherkin
|
@@ -20,54 +20,72 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "~>"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '7.0'
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 7.0.3
|
24
27
|
type: :runtime
|
25
28
|
prerelease: false
|
26
29
|
version_requirements: !ruby/object:Gem::Requirement
|
27
30
|
requirements:
|
28
31
|
- - "~>"
|
29
32
|
- !ruby/object:Gem::Version
|
30
|
-
version: '
|
33
|
+
version: '7.0'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 7.0.3
|
31
37
|
- !ruby/object:Gem::Dependency
|
32
38
|
name: cucumber-tag_expressions
|
33
39
|
requirement: !ruby/object:Gem::Requirement
|
34
40
|
requirements:
|
35
41
|
- - "~>"
|
36
42
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
43
|
+
version: '2.0'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.0.2
|
38
47
|
type: :runtime
|
39
48
|
prerelease: false
|
40
49
|
version_requirements: !ruby/object:Gem::Requirement
|
41
50
|
requirements:
|
42
51
|
- - "~>"
|
43
52
|
- !ruby/object:Gem::Version
|
44
|
-
version:
|
53
|
+
version: '2.0'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.0.2
|
45
57
|
- !ruby/object:Gem::Dependency
|
46
58
|
name: backports
|
47
59
|
requirement: !ruby/object:Gem::Requirement
|
48
60
|
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '3.15'
|
49
64
|
- - ">="
|
50
65
|
- !ruby/object:Gem::Version
|
51
|
-
version: 3.
|
66
|
+
version: 3.15.0
|
52
67
|
type: :runtime
|
53
68
|
prerelease: false
|
54
69
|
version_requirements: !ruby/object:Gem::Requirement
|
55
70
|
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '3.15'
|
56
74
|
- - ">="
|
57
75
|
- !ruby/object:Gem::Version
|
58
|
-
version: 3.
|
76
|
+
version: 3.15.0
|
59
77
|
- !ruby/object:Gem::Dependency
|
60
78
|
name: bundler
|
61
79
|
requirement: !ruby/object:Gem::Requirement
|
62
80
|
requirements:
|
63
|
-
- - "
|
81
|
+
- - ">="
|
64
82
|
- !ruby/object:Gem::Version
|
65
83
|
version: 1.16.0
|
66
84
|
type: :development
|
67
85
|
prerelease: false
|
68
86
|
version_requirements: !ruby/object:Gem::Requirement
|
69
87
|
requirements:
|
70
|
-
- - "
|
88
|
+
- - ">="
|
71
89
|
- !ruby/object:Gem::Version
|
72
90
|
version: 1.16.0
|
73
91
|
- !ruby/object:Gem::Dependency
|
@@ -194,10 +212,38 @@ files:
|
|
194
212
|
- lib/cucumber/core/test/tag.rb
|
195
213
|
- lib/cucumber/core/test/timer.rb
|
196
214
|
- lib/cucumber/core/version.rb
|
215
|
+
- spec/capture_warnings.rb
|
216
|
+
- spec/coverage.rb
|
217
|
+
- spec/cucumber/core/compiler_spec.rb
|
218
|
+
- spec/cucumber/core/event_bus_spec.rb
|
219
|
+
- spec/cucumber/core/event_spec.rb
|
220
|
+
- spec/cucumber/core/filter_spec.rb
|
221
|
+
- spec/cucumber/core/gherkin/parser_spec.rb
|
222
|
+
- spec/cucumber/core/gherkin/writer_spec.rb
|
223
|
+
- spec/cucumber/core/report/summary_spec.rb
|
224
|
+
- spec/cucumber/core/test/action_spec.rb
|
225
|
+
- spec/cucumber/core/test/case_spec.rb
|
226
|
+
- spec/cucumber/core/test/data_table_spec.rb
|
227
|
+
- spec/cucumber/core/test/doc_string_spec.rb
|
228
|
+
- spec/cucumber/core/test/duration_matcher.rb
|
229
|
+
- spec/cucumber/core/test/empty_multiline_argument_spec.rb
|
230
|
+
- spec/cucumber/core/test/filters/locations_filter_spec.rb
|
231
|
+
- spec/cucumber/core/test/location_spec.rb
|
232
|
+
- spec/cucumber/core/test/result_spec.rb
|
233
|
+
- spec/cucumber/core/test/runner_spec.rb
|
234
|
+
- spec/cucumber/core/test/step_spec.rb
|
235
|
+
- spec/cucumber/core/test/timer_spec.rb
|
236
|
+
- spec/cucumber/core_spec.rb
|
237
|
+
- spec/report_api_spy.rb
|
197
238
|
homepage: https://cucumber.io
|
198
239
|
licenses:
|
199
240
|
- MIT
|
200
|
-
metadata:
|
241
|
+
metadata:
|
242
|
+
bug_tracker_uri: https://github.com/cucumber/cucumber-ruby-core/issues
|
243
|
+
changelog_uri: https://github.com/cucumber/cucumber-ruby-core/blob/master/CHANGELOG.md
|
244
|
+
documentation_uri: https://www.rubydoc.info/github/cucumber/cucumber-ruby-core
|
245
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
|
246
|
+
source_code_uri: https://github.com/cucumber/cucumber-ruby-core
|
201
247
|
post_install_message:
|
202
248
|
rdoc_options:
|
203
249
|
- "--charset=UTF-8"
|
@@ -215,8 +261,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
261
|
version: '0'
|
216
262
|
requirements: []
|
217
263
|
rubyforge_project:
|
218
|
-
rubygems_version: 2.
|
264
|
+
rubygems_version: 2.6.14.4
|
219
265
|
signing_key:
|
220
266
|
specification_version: 4
|
221
|
-
summary: cucumber-core-
|
222
|
-
test_files:
|
267
|
+
summary: cucumber-core-5.0.0
|
268
|
+
test_files:
|
269
|
+
- spec/cucumber/core/test/runner_spec.rb
|
270
|
+
- spec/cucumber/core/test/doc_string_spec.rb
|
271
|
+
- spec/cucumber/core/test/filters/locations_filter_spec.rb
|
272
|
+
- spec/cucumber/core/test/step_spec.rb
|
273
|
+
- spec/cucumber/core/test/duration_matcher.rb
|
274
|
+
- spec/cucumber/core/test/case_spec.rb
|
275
|
+
- spec/cucumber/core/test/result_spec.rb
|
276
|
+
- spec/cucumber/core/test/location_spec.rb
|
277
|
+
- spec/cucumber/core/test/action_spec.rb
|
278
|
+
- spec/cucumber/core/test/timer_spec.rb
|
279
|
+
- spec/cucumber/core/test/data_table_spec.rb
|
280
|
+
- spec/cucumber/core/test/empty_multiline_argument_spec.rb
|
281
|
+
- spec/cucumber/core/gherkin/parser_spec.rb
|
282
|
+
- spec/cucumber/core/gherkin/writer_spec.rb
|
283
|
+
- spec/cucumber/core/event_spec.rb
|
284
|
+
- spec/cucumber/core/report/summary_spec.rb
|
285
|
+
- spec/cucumber/core/compiler_spec.rb
|
286
|
+
- spec/cucumber/core/event_bus_spec.rb
|
287
|
+
- spec/cucumber/core/filter_spec.rb
|
288
|
+
- spec/cucumber/core_spec.rb
|
289
|
+
- spec/capture_warnings.rb
|
290
|
+
- spec/coverage.rb
|
291
|
+
- spec/report_api_spy.rb
|