cucumber-messages 11.1.1 → 12.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -0
- data/lib/cucumber/messages.pb.rb +149 -239
- data/lib/cucumber/messages.rb +6 -0
- data/lib/cucumber/messages/time_conversion.rb +5 -3
- data/spec/cucumber/messages/ndjson_serialization_spec.rb +10 -0
- data/spec/cucumber/messages/time_conversion_spec.rb +1 -1
- data/spec/cucumber/messages/version_spec.rb +11 -0
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0623b4c0c46da74d9b911553ce4e08a91b41c03f8bc9f0823764560a0b05e99
|
4
|
+
data.tar.gz: 3806727003b7cdae1541b32595538e0b879dfde710688f1c9257a7bbce0c3c37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 938017bb1cbda743694b812cf62e967076a8aecaa05f503866f94a3cb61c41a5321c539fa82f3518720b615d91a8b79d1d1e8a58f4921b9d239dca94b2fbe9f0
|
7
|
+
data.tar.gz: a5bab767ebb3a89d9cadd2e81edaf4c7fd9641d9a56794aef980627850dd76084b6c77f6adcc2ed6f36d80693134a2816aa947d2331580c54a19c6bdd34f59a9
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
12.3.1
|
data/lib/cucumber/messages.pb.rb
CHANGED
@@ -10,27 +10,25 @@ module Cucumber
|
|
10
10
|
::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
|
11
11
|
|
12
12
|
##
|
13
|
-
#
|
13
|
+
# Message Classes
|
14
14
|
#
|
15
|
-
class
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
class Envelope < ::Protobuf::Message; end
|
16
|
+
class Meta < ::Protobuf::Message
|
17
|
+
class Product < ::Protobuf::Message; end
|
18
|
+
class CI < ::Protobuf::Message
|
19
|
+
class Git < ::Protobuf::Message; end
|
19
20
|
|
20
|
-
|
21
|
-
define :CUCUMBER_EXPRESSION, 0
|
22
|
-
define :REGULAR_EXPRESSION, 1
|
23
|
-
end
|
21
|
+
end
|
24
22
|
|
25
23
|
|
26
|
-
|
27
|
-
|
28
|
-
#
|
24
|
+
end
|
25
|
+
|
29
26
|
class Timestamp < ::Protobuf::Message; end
|
30
27
|
class Duration < ::Protobuf::Message; end
|
31
|
-
class Envelope < ::Protobuf::Message; end
|
32
28
|
class Location < ::Protobuf::Message; end
|
33
29
|
class SourceReference < ::Protobuf::Message; end
|
30
|
+
class JavaMethod < ::Protobuf::Message; end
|
31
|
+
class JavaStackTraceElement < ::Protobuf::Message; end
|
34
32
|
class Source < ::Protobuf::Message; end
|
35
33
|
class GherkinDocument < ::Protobuf::Message
|
36
34
|
class Comment < ::Protobuf::Message; end
|
@@ -95,66 +93,59 @@ module Cucumber
|
|
95
93
|
|
96
94
|
class TestCase < ::Protobuf::Message
|
97
95
|
class TestStep < ::Protobuf::Message
|
98
|
-
class StepMatchArgumentsList < ::Protobuf::Message
|
96
|
+
class StepMatchArgumentsList < ::Protobuf::Message
|
97
|
+
class StepMatchArgument < ::Protobuf::Message
|
98
|
+
class Group < ::Protobuf::Message; end
|
99
99
|
|
100
|
-
|
100
|
+
end
|
101
101
|
|
102
102
|
|
103
|
-
|
103
|
+
end
|
104
|
+
|
105
|
+
|
106
|
+
end
|
104
107
|
|
105
|
-
class PickleAccepted < ::Protobuf::Message; end
|
106
|
-
class PickleRejected < ::Protobuf::Message; end
|
107
|
-
class TestRunStarted < ::Protobuf::Message; end
|
108
|
-
class TestCasePreparedStep < ::Protobuf::Message; end
|
109
|
-
class TestCasePrepared < ::Protobuf::Message; end
|
110
|
-
class TestCaseStarted < ::Protobuf::Message
|
111
|
-
class Platform < ::Protobuf::Message; end
|
112
108
|
|
113
109
|
end
|
114
110
|
|
111
|
+
class TestRunStarted < ::Protobuf::Message; end
|
112
|
+
class TestCaseStarted < ::Protobuf::Message; end
|
115
113
|
class TestCaseFinished < ::Protobuf::Message; end
|
116
114
|
class TestStepStarted < ::Protobuf::Message; end
|
117
|
-
class TestStepFinished < ::Protobuf::Message
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
115
|
+
class TestStepFinished < ::Protobuf::Message
|
116
|
+
class TestStepResult < ::Protobuf::Message
|
117
|
+
class Status < ::Protobuf::Enum
|
118
|
+
define :UNKNOWN, 0
|
119
|
+
define :PASSED, 1
|
120
|
+
define :SKIPPED, 2
|
121
|
+
define :PENDING, 3
|
122
|
+
define :UNDEFINED, 4
|
123
|
+
define :AMBIGUOUS, 5
|
124
|
+
define :FAILED, 6
|
125
|
+
end
|
126
|
+
|
127
127
|
end
|
128
128
|
|
129
|
+
|
129
130
|
end
|
130
131
|
|
131
132
|
class TestRunFinished < ::Protobuf::Message; end
|
132
|
-
class CommandStart < ::Protobuf::Message; end
|
133
|
-
class SourcesConfig < ::Protobuf::Message; end
|
134
|
-
class SourcesFilterConfig < ::Protobuf::Message; end
|
135
|
-
class UriToLinesMapping < ::Protobuf::Message; end
|
136
|
-
class SourcesOrder < ::Protobuf::Message; end
|
137
|
-
class RuntimeConfig < ::Protobuf::Message; end
|
138
|
-
class SupportCodeConfig < ::Protobuf::Message; end
|
139
133
|
class Hook < ::Protobuf::Message; end
|
140
|
-
class StepDefinition < ::Protobuf::Message
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
class CommandRunAfterTestCaseHook < ::Protobuf::Message; end
|
150
|
-
class CommandRunTestStep < ::Protobuf::Message; end
|
151
|
-
class StepMatchArgument < ::Protobuf::Message
|
152
|
-
class Group < ::Protobuf::Message; end
|
134
|
+
class StepDefinition < ::Protobuf::Message
|
135
|
+
class StepDefinitionPattern < ::Protobuf::Message
|
136
|
+
class StepDefinitionPatternType < ::Protobuf::Enum
|
137
|
+
define :CUCUMBER_EXPRESSION, 0
|
138
|
+
define :REGULAR_EXPRESSION, 1
|
139
|
+
end
|
140
|
+
|
141
|
+
end
|
142
|
+
|
153
143
|
|
154
144
|
end
|
155
145
|
|
156
|
-
class
|
157
|
-
class
|
146
|
+
class ParameterType < ::Protobuf::Message; end
|
147
|
+
class UndefinedParameterType < ::Protobuf::Message; end
|
148
|
+
class ParseError < ::Protobuf::Message; end
|
158
149
|
|
159
150
|
|
160
151
|
##
|
@@ -166,6 +157,53 @@ module Cucumber
|
|
166
157
|
##
|
167
158
|
# Message Fields
|
168
159
|
#
|
160
|
+
class Envelope
|
161
|
+
optional ::Cucumber::Messages::Source, :source, 1
|
162
|
+
optional ::Cucumber::Messages::GherkinDocument, :gherkin_document, 2
|
163
|
+
optional ::Cucumber::Messages::Pickle, :pickle, 3
|
164
|
+
optional ::Cucumber::Messages::StepDefinition, :step_definition, 4
|
165
|
+
optional ::Cucumber::Messages::Hook, :hook, 5
|
166
|
+
optional ::Cucumber::Messages::ParameterType, :parameter_type, 6
|
167
|
+
optional ::Cucumber::Messages::TestCase, :test_case, 7
|
168
|
+
optional ::Cucumber::Messages::UndefinedParameterType, :undefined_parameter_type, 8
|
169
|
+
optional ::Cucumber::Messages::TestRunStarted, :test_run_started, 9
|
170
|
+
optional ::Cucumber::Messages::TestCaseStarted, :test_case_started, 10
|
171
|
+
optional ::Cucumber::Messages::TestStepStarted, :test_step_started, 11
|
172
|
+
optional ::Cucumber::Messages::Attachment, :attachment, 12
|
173
|
+
optional ::Cucumber::Messages::TestStepFinished, :test_step_finished, 13
|
174
|
+
optional ::Cucumber::Messages::TestCaseFinished, :test_case_finished, 14
|
175
|
+
optional ::Cucumber::Messages::TestRunFinished, :test_run_finished, 15
|
176
|
+
optional ::Cucumber::Messages::ParseError, :parse_error, 16
|
177
|
+
optional ::Cucumber::Messages::Meta, :meta, 17
|
178
|
+
end
|
179
|
+
|
180
|
+
class Meta
|
181
|
+
class Product
|
182
|
+
optional :string, :name, 1
|
183
|
+
optional :string, :version, 2
|
184
|
+
end
|
185
|
+
|
186
|
+
class CI
|
187
|
+
class Git
|
188
|
+
optional :string, :remote, 1
|
189
|
+
optional :string, :revision, 2
|
190
|
+
optional :string, :branch, 3
|
191
|
+
optional :string, :tag, 4
|
192
|
+
end
|
193
|
+
|
194
|
+
optional :string, :name, 1
|
195
|
+
optional :string, :url, 2
|
196
|
+
optional ::Cucumber::Messages::Meta::CI::Git, :git, 3
|
197
|
+
end
|
198
|
+
|
199
|
+
optional :string, :protocol_version, 1
|
200
|
+
optional ::Cucumber::Messages::Meta::Product, :implementation, 2
|
201
|
+
optional ::Cucumber::Messages::Meta::Product, :runtime, 3
|
202
|
+
optional ::Cucumber::Messages::Meta::Product, :os, 4
|
203
|
+
optional ::Cucumber::Messages::Meta::Product, :cpu, 5
|
204
|
+
optional ::Cucumber::Messages::Meta::CI, :ci, 6
|
205
|
+
end
|
206
|
+
|
169
207
|
class Timestamp
|
170
208
|
optional :int64, :seconds, 1
|
171
209
|
optional :int32, :nanos, 2
|
@@ -176,37 +214,6 @@ module Cucumber
|
|
176
214
|
optional :int32, :nanos, 2
|
177
215
|
end
|
178
216
|
|
179
|
-
class Envelope
|
180
|
-
optional ::Cucumber::Messages::Source, :source, 1
|
181
|
-
optional ::Cucumber::Messages::GherkinDocument, :gherkin_document, 2
|
182
|
-
optional ::Cucumber::Messages::Pickle, :pickle, 3
|
183
|
-
optional ::Cucumber::Messages::Attachment, :attachment, 4
|
184
|
-
optional ::Cucumber::Messages::TestCaseStarted, :test_case_started, 5
|
185
|
-
optional ::Cucumber::Messages::TestStepStarted, :test_step_started, 6
|
186
|
-
optional ::Cucumber::Messages::TestStepFinished, :test_step_finished, 7
|
187
|
-
optional ::Cucumber::Messages::TestCaseFinished, :test_case_finished, 8
|
188
|
-
optional ::Cucumber::Messages::PickleAccepted, :pickle_accepted, 9
|
189
|
-
optional ::Cucumber::Messages::PickleRejected, :pickle_rejected, 10
|
190
|
-
optional ::Cucumber::Messages::TestCasePrepared, :test_case_prepared, 11
|
191
|
-
optional ::Cucumber::Messages::TestRunStarted, :test_run_started, 12
|
192
|
-
optional ::Cucumber::Messages::TestRunFinished, :test_run_finished, 13
|
193
|
-
optional ::Cucumber::Messages::CommandStart, :command_start, 14
|
194
|
-
optional ::Cucumber::Messages::CommandActionComplete, :command_action_complete, 15
|
195
|
-
optional ::Cucumber::Messages::CommandRunBeforeTestRunHooks, :command_run_before_test_run_hooks, 16
|
196
|
-
optional ::Cucumber::Messages::CommandInitializeTestCase, :command_initialize_test_case, 17
|
197
|
-
optional ::Cucumber::Messages::CommandRunBeforeTestCaseHook, :command_run_before_test_case_hook, 18
|
198
|
-
optional ::Cucumber::Messages::CommandRunTestStep, :command_run_test_step, 19
|
199
|
-
optional ::Cucumber::Messages::CommandRunAfterTestCaseHook, :command_run_after_test_case_hook, 20
|
200
|
-
optional ::Cucumber::Messages::CommandRunAfterTestRunHooks, :command_run_after_test_run_hooks, 21
|
201
|
-
optional ::Cucumber::Messages::CommandGenerateSnippet, :command_generate_snippet, 22
|
202
|
-
optional :string, :command_error, 23
|
203
|
-
optional ::Cucumber::Messages::TestCase, :test_case, 24
|
204
|
-
optional ::Cucumber::Messages::StepDefinition, :step_definition, 25
|
205
|
-
optional ::Cucumber::Messages::Hook, :hook, 26
|
206
|
-
optional ::Cucumber::Messages::ParameterType, :parameter_type, 27
|
207
|
-
optional ::Cucumber::Messages::UndefinedParameterType, :undefined_parameter_type, 28
|
208
|
-
end
|
209
|
-
|
210
217
|
class Location
|
211
218
|
optional :uint32, :line, 1
|
212
219
|
optional :uint32, :column, 2
|
@@ -214,13 +221,27 @@ module Cucumber
|
|
214
221
|
|
215
222
|
class SourceReference
|
216
223
|
optional :string, :uri, 1
|
224
|
+
optional ::Cucumber::Messages::JavaMethod, :java_method, 3
|
225
|
+
optional ::Cucumber::Messages::JavaStackTraceElement, :java_stack_trace_element, 4
|
217
226
|
optional ::Cucumber::Messages::Location, :location, 2
|
218
227
|
end
|
219
228
|
|
229
|
+
class JavaMethod
|
230
|
+
optional :string, :class_name, 1
|
231
|
+
optional :string, :method_name, 2
|
232
|
+
repeated :string, :method_parameter_types, 3
|
233
|
+
end
|
234
|
+
|
235
|
+
class JavaStackTraceElement
|
236
|
+
optional :string, :class_name, 1
|
237
|
+
optional :string, :method_name, 2
|
238
|
+
optional :string, :file_name, 3
|
239
|
+
end
|
240
|
+
|
220
241
|
class Source
|
221
242
|
optional :string, :uri, 1
|
222
243
|
optional :string, :data, 2
|
223
|
-
optional :string, :media_type,
|
244
|
+
optional :string, :media_type, 3
|
224
245
|
end
|
225
246
|
|
226
247
|
class GherkinDocument
|
@@ -243,6 +264,7 @@ module Cucumber
|
|
243
264
|
optional :string, :name, 3
|
244
265
|
optional :string, :description, 4
|
245
266
|
repeated ::Cucumber::Messages::GherkinDocument::Feature::FeatureChild::RuleChild, :children, 5
|
267
|
+
optional :string, :id, 6
|
246
268
|
end
|
247
269
|
|
248
270
|
class RuleChild
|
@@ -261,6 +283,7 @@ module Cucumber
|
|
261
283
|
optional :string, :name, 3
|
262
284
|
optional :string, :description, 4
|
263
285
|
repeated ::Cucumber::Messages::GherkinDocument::Feature::Step, :steps, 5
|
286
|
+
optional :string, :id, 6
|
264
287
|
end
|
265
288
|
|
266
289
|
class Scenario
|
@@ -272,6 +295,7 @@ module Cucumber
|
|
272
295
|
optional :string, :description, 5
|
273
296
|
optional ::Cucumber::Messages::GherkinDocument::Feature::TableRow, :table_header, 6
|
274
297
|
repeated ::Cucumber::Messages::GherkinDocument::Feature::TableRow, :table_body, 7
|
298
|
+
optional :string, :id, 8
|
275
299
|
end
|
276
300
|
|
277
301
|
optional ::Cucumber::Messages::Location, :location, 1
|
@@ -311,9 +335,9 @@ module Cucumber
|
|
311
335
|
optional ::Cucumber::Messages::Location, :location, 1
|
312
336
|
optional :string, :keyword, 2
|
313
337
|
optional :string, :text, 3
|
314
|
-
optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DocString, :doc_string,
|
315
|
-
optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DataTable, :data_table,
|
316
|
-
optional :string, :id,
|
338
|
+
optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DocString, :doc_string, 4
|
339
|
+
optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DataTable, :data_table, 5
|
340
|
+
optional :string, :id, 6
|
317
341
|
end
|
318
342
|
|
319
343
|
optional ::Cucumber::Messages::Location, :location, 1
|
@@ -332,11 +356,11 @@ module Cucumber
|
|
332
356
|
|
333
357
|
class Attachment
|
334
358
|
optional ::Cucumber::Messages::SourceReference, :source, 1
|
335
|
-
optional :string, :test_step_id,
|
336
|
-
optional :string, :test_case_started_id,
|
337
|
-
optional :string, :body,
|
338
|
-
optional :string, :media_type,
|
339
|
-
optional ::Cucumber::Messages::Attachment::ContentEncoding, :content_encoding,
|
359
|
+
optional :string, :test_step_id, 2
|
360
|
+
optional :string, :test_case_started_id, 3
|
361
|
+
optional :string, :body, 4
|
362
|
+
optional :string, :media_type, 5
|
363
|
+
optional ::Cucumber::Messages::Attachment::ContentEncoding, :content_encoding, 6
|
340
364
|
end
|
341
365
|
|
342
366
|
class Pickle
|
@@ -386,7 +410,18 @@ module Cucumber
|
|
386
410
|
class TestCase
|
387
411
|
class TestStep
|
388
412
|
class StepMatchArgumentsList
|
389
|
-
|
413
|
+
class StepMatchArgument
|
414
|
+
class Group
|
415
|
+
optional :uint32, :start, 1
|
416
|
+
optional :string, :value, 2
|
417
|
+
repeated ::Cucumber::Messages::TestCase::TestStep::StepMatchArgumentsList::StepMatchArgument::Group, :children, 3
|
418
|
+
end
|
419
|
+
|
420
|
+
optional :string, :parameter_type_name, 1
|
421
|
+
optional ::Cucumber::Messages::TestCase::TestStep::StepMatchArgumentsList::StepMatchArgument::Group, :group, 2
|
422
|
+
end
|
423
|
+
|
424
|
+
repeated ::Cucumber::Messages::TestCase::TestStep::StepMatchArgumentsList::StepMatchArgument, :step_match_arguments, 1
|
390
425
|
end
|
391
426
|
|
392
427
|
optional :string, :id, 1
|
@@ -401,38 +436,12 @@ module Cucumber
|
|
401
436
|
repeated ::Cucumber::Messages::TestCase::TestStep, :test_steps, 3
|
402
437
|
end
|
403
438
|
|
404
|
-
class PickleAccepted
|
405
|
-
optional :string, :pickle_id, 1
|
406
|
-
end
|
407
|
-
|
408
|
-
class PickleRejected
|
409
|
-
optional :string, :pickle_id, 2
|
410
|
-
end
|
411
|
-
|
412
439
|
class TestRunStarted
|
413
440
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 1
|
414
441
|
end
|
415
442
|
|
416
|
-
class TestCasePreparedStep
|
417
|
-
optional ::Cucumber::Messages::SourceReference, :source_location, 1
|
418
|
-
optional ::Cucumber::Messages::SourceReference, :action_location, 2
|
419
|
-
end
|
420
|
-
|
421
|
-
class TestCasePrepared
|
422
|
-
optional :string, :pickle_id, 1
|
423
|
-
repeated ::Cucumber::Messages::TestCasePreparedStep, :steps, 2
|
424
|
-
end
|
425
|
-
|
426
443
|
class TestCaseStarted
|
427
|
-
class Platform
|
428
|
-
optional :string, :implementation, 1
|
429
|
-
optional :string, :version, 2
|
430
|
-
optional :string, :os, 3
|
431
|
-
optional :string, :cpu, 4
|
432
|
-
end
|
433
|
-
|
434
444
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 1
|
435
|
-
optional ::Cucumber::Messages::TestCaseStarted::Platform, :platform, 2
|
436
445
|
optional :uint32, :attempt, 3
|
437
446
|
optional :string, :test_case_id, 4
|
438
447
|
optional :string, :id, 5
|
@@ -450,69 +459,25 @@ module Cucumber
|
|
450
459
|
end
|
451
460
|
|
452
461
|
class TestStepFinished
|
453
|
-
|
462
|
+
class TestStepResult
|
463
|
+
optional ::Cucumber::Messages::TestStepFinished::TestStepResult::Status, :status, 1
|
464
|
+
optional :string, :message, 2
|
465
|
+
optional ::Cucumber::Messages::Duration, :duration, 3
|
466
|
+
optional :bool, :will_be_retried, 4
|
467
|
+
end
|
468
|
+
|
469
|
+
optional ::Cucumber::Messages::TestStepFinished::TestStepResult, :test_step_result, 1
|
454
470
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 2
|
455
471
|
optional :string, :test_step_id, 3
|
456
472
|
optional :string, :test_case_started_id, 4
|
457
473
|
end
|
458
474
|
|
459
|
-
class TestStepResult
|
460
|
-
optional ::Cucumber::Messages::TestStepResult::Status, :status, 1
|
461
|
-
optional :string, :message, 2
|
462
|
-
optional ::Cucumber::Messages::Duration, :duration, 3
|
463
|
-
optional :bool, :will_be_retried, 4
|
464
|
-
end
|
465
|
-
|
466
475
|
class TestRunFinished
|
467
476
|
optional :bool, :success, 1
|
468
477
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 2
|
469
478
|
optional :string, :message, 3
|
470
479
|
end
|
471
480
|
|
472
|
-
class CommandStart
|
473
|
-
optional :string, :base_directory, 2
|
474
|
-
optional ::Cucumber::Messages::SourcesConfig, :sources_config, 3
|
475
|
-
optional ::Cucumber::Messages::RuntimeConfig, :runtime_config, 4
|
476
|
-
optional ::Cucumber::Messages::SupportCodeConfig, :support_code_config, 5
|
477
|
-
end
|
478
|
-
|
479
|
-
class SourcesConfig
|
480
|
-
repeated :string, :absolute_paths, 1
|
481
|
-
optional :string, :language, 2
|
482
|
-
optional ::Cucumber::Messages::SourcesFilterConfig, :filters, 3
|
483
|
-
optional ::Cucumber::Messages::SourcesOrder, :order, 4
|
484
|
-
end
|
485
|
-
|
486
|
-
class SourcesFilterConfig
|
487
|
-
optional :string, :tag_expression, 1
|
488
|
-
repeated :string, :name_regular_expressions, 2
|
489
|
-
repeated ::Cucumber::Messages::UriToLinesMapping, :uri_to_lines_mapping, 3
|
490
|
-
end
|
491
|
-
|
492
|
-
class UriToLinesMapping
|
493
|
-
optional :string, :absolute_path, 1
|
494
|
-
repeated :uint64, :lines, 2
|
495
|
-
end
|
496
|
-
|
497
|
-
class SourcesOrder
|
498
|
-
optional ::Cucumber::Messages::SourcesOrderType, :type, 1
|
499
|
-
optional :uint64, :seed, 2
|
500
|
-
end
|
501
|
-
|
502
|
-
class RuntimeConfig
|
503
|
-
optional :bool, :is_fail_fast, 1
|
504
|
-
optional :bool, :is_dry_run, 2
|
505
|
-
optional :bool, :is_strict, 3
|
506
|
-
optional :uint64, :max_parallel, 4
|
507
|
-
end
|
508
|
-
|
509
|
-
class SupportCodeConfig
|
510
|
-
repeated ::Cucumber::Messages::Hook, :before_test_case_hooks, 1
|
511
|
-
repeated ::Cucumber::Messages::Hook, :after_test_case_hooks, 2
|
512
|
-
repeated ::Cucumber::Messages::StepDefinition, :step_definitions, 3
|
513
|
-
repeated ::Cucumber::Messages::ParameterType, :parameter_types, 4
|
514
|
-
end
|
515
|
-
|
516
481
|
class Hook
|
517
482
|
optional :string, :id, 1
|
518
483
|
optional :string, :tag_expression, 2
|
@@ -520,21 +485,22 @@ module Cucumber
|
|
520
485
|
end
|
521
486
|
|
522
487
|
class StepDefinition
|
488
|
+
class StepDefinitionPattern
|
489
|
+
optional :string, :source, 1
|
490
|
+
optional ::Cucumber::Messages::StepDefinition::StepDefinitionPattern::StepDefinitionPatternType, :type, 2
|
491
|
+
end
|
492
|
+
|
523
493
|
optional :string, :id, 1
|
524
|
-
optional ::Cucumber::Messages::StepDefinitionPattern, :pattern, 2
|
494
|
+
optional ::Cucumber::Messages::StepDefinition::StepDefinitionPattern, :pattern, 2
|
525
495
|
optional ::Cucumber::Messages::SourceReference, :source_reference, 3
|
526
496
|
end
|
527
497
|
|
528
|
-
class StepDefinitionPattern
|
529
|
-
optional :string, :source, 1
|
530
|
-
optional ::Cucumber::Messages::StepDefinitionPatternType, :type, 2
|
531
|
-
end
|
532
|
-
|
533
498
|
class ParameterType
|
534
499
|
optional :string, :name, 1
|
535
500
|
repeated :string, :regular_expressions, 2
|
536
501
|
optional :bool, :prefer_for_regular_expression_match, 3
|
537
502
|
optional :bool, :use_for_snippets, 4
|
503
|
+
optional :string, :id, 5
|
538
504
|
end
|
539
505
|
|
540
506
|
class UndefinedParameterType
|
@@ -542,65 +508,9 @@ module Cucumber
|
|
542
508
|
optional :string, :expression, 2
|
543
509
|
end
|
544
510
|
|
545
|
-
class
|
546
|
-
optional
|
547
|
-
optional
|
548
|
-
optional :string, :snippet, 3
|
549
|
-
end
|
550
|
-
|
551
|
-
class CommandRunBeforeTestRunHooks
|
552
|
-
optional :string, :action_id, 1
|
553
|
-
end
|
554
|
-
|
555
|
-
class CommandRunAfterTestRunHooks
|
556
|
-
optional :string, :action_id, 1
|
557
|
-
end
|
558
|
-
|
559
|
-
class CommandInitializeTestCase
|
560
|
-
optional :string, :action_id, 1
|
561
|
-
optional ::Cucumber::Messages::Pickle, :pickle, 2
|
562
|
-
end
|
563
|
-
|
564
|
-
class CommandRunBeforeTestCaseHook
|
565
|
-
optional :string, :action_id, 1
|
566
|
-
optional :string, :hook_id, 2
|
567
|
-
optional :string, :test_case_id, 3
|
568
|
-
end
|
569
|
-
|
570
|
-
class CommandRunAfterTestCaseHook
|
571
|
-
optional :string, :action_id, 1
|
572
|
-
optional :string, :hook_id, 2
|
573
|
-
optional :string, :test_case_id, 3
|
574
|
-
end
|
575
|
-
|
576
|
-
class CommandRunTestStep
|
577
|
-
optional :string, :action_id, 1
|
578
|
-
optional :string, :step_definition_id, 2
|
579
|
-
repeated ::Cucumber::Messages::StepMatchArgument, :step_match_arguments, 3
|
580
|
-
optional ::Cucumber::Messages::PickleStepArgument, :pickle_step_argument, 4
|
581
|
-
optional :string, :test_case_id, 5
|
582
|
-
end
|
583
|
-
|
584
|
-
class StepMatchArgument
|
585
|
-
class Group
|
586
|
-
optional :uint32, :start, 1
|
587
|
-
optional :string, :value, 2
|
588
|
-
repeated ::Cucumber::Messages::StepMatchArgument::Group, :children, 3
|
589
|
-
end
|
590
|
-
|
591
|
-
optional :string, :parameter_type_name, 1
|
592
|
-
optional ::Cucumber::Messages::StepMatchArgument::Group, :group, 2
|
593
|
-
end
|
594
|
-
|
595
|
-
class CommandGenerateSnippet
|
596
|
-
optional :string, :action_id, 1
|
597
|
-
repeated ::Cucumber::Messages::GeneratedExpression, :generated_expressions, 2
|
598
|
-
optional ::Cucumber::Messages::PickleStepArgument, :pickle_step_argument, 3
|
599
|
-
end
|
600
|
-
|
601
|
-
class GeneratedExpression
|
602
|
-
optional :string, :text, 1
|
603
|
-
repeated :string, :parameter_type_names, 2
|
511
|
+
class ParseError
|
512
|
+
optional ::Cucumber::Messages::SourceReference, :source, 1
|
513
|
+
optional :string, :message, 2
|
604
514
|
end
|
605
515
|
|
606
516
|
end
|
data/lib/cucumber/messages.rb
CHANGED
@@ -9,3 +9,9 @@ require 'cucumber/messages/id_generator'
|
|
9
9
|
Cucumber::Messages::Envelope.include(Cucumber::Messages::WriteNdjson)
|
10
10
|
Cucumber::Messages::Envelope.include(Cucumber::Messages::WriteDelimited)
|
11
11
|
Cucumber::Messages::Envelope.extend(Cucumber::Messages::ParseDelimited)
|
12
|
+
|
13
|
+
module Cucumber
|
14
|
+
module Messages
|
15
|
+
VERSION = File.read(File.expand_path("../../VERSION", __dir__)).strip
|
16
|
+
end
|
17
|
+
end
|
@@ -4,12 +4,14 @@ module Cucumber
|
|
4
4
|
NANOSECONDS_PER_SECOND = 1000000000
|
5
5
|
|
6
6
|
def time_to_timestamp(time)
|
7
|
-
|
8
|
-
|
7
|
+
Timestamp.new(
|
8
|
+
seconds: time.to_i,
|
9
|
+
nanos: time.nsec
|
10
|
+
)
|
9
11
|
end
|
10
12
|
|
11
13
|
def timestamp_to_time(timestamp)
|
12
|
-
Time.at(
|
14
|
+
Time.at(timestamp.seconds + timestamp.nanos.to_f / NANOSECONDS_PER_SECOND)
|
13
15
|
end
|
14
16
|
|
15
17
|
def seconds_to_duration(seconds_float)
|
@@ -69,6 +69,16 @@ module Cucumber
|
|
69
69
|
expect(incoming_messages.to_a).to(eq(outgoing_messages))
|
70
70
|
end
|
71
71
|
|
72
|
+
it "ignores missing fields" do
|
73
|
+
io = StringIO.new
|
74
|
+
io.puts('{"unused": 99}')
|
75
|
+
|
76
|
+
io.rewind
|
77
|
+
incoming_messages = NdjsonToMessageEnumerator.new(io)
|
78
|
+
|
79
|
+
expect(incoming_messages.to_a).to(eq([Envelope.new]))
|
80
|
+
end
|
81
|
+
|
72
82
|
def write_outgoing_messages(messages, out)
|
73
83
|
messages.each do |message|
|
74
84
|
message.write_ndjson_to(out)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-messages
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 12.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf-cucumber
|
@@ -78,6 +78,7 @@ extra_rdoc_files: []
|
|
78
78
|
files:
|
79
79
|
- LICENSE
|
80
80
|
- README.md
|
81
|
+
- VERSION
|
81
82
|
- lib/cucumber/messages.pb.rb
|
82
83
|
- lib/cucumber/messages.rb
|
83
84
|
- lib/cucumber/messages/binary_to_message_enumerator.rb
|
@@ -92,6 +93,7 @@ files:
|
|
92
93
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|
93
94
|
- spec/cucumber/messages/protobuf_serialization_spec.rb
|
94
95
|
- spec/cucumber/messages/time_conversion_spec.rb
|
96
|
+
- spec/cucumber/messages/version_spec.rb
|
95
97
|
homepage: https://github.com/cucumber/messages-ruby#readme
|
96
98
|
licenses:
|
97
99
|
- MIT
|
@@ -117,14 +119,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
119
|
- !ruby/object:Gem::Version
|
118
120
|
version: '0'
|
119
121
|
requirements: []
|
120
|
-
|
121
|
-
rubygems_version: 2.7.6.2
|
122
|
+
rubygems_version: 3.1.2
|
122
123
|
signing_key:
|
123
124
|
specification_version: 4
|
124
|
-
summary: cucumber-messages-
|
125
|
+
summary: cucumber-messages-12.3.1
|
125
126
|
test_files:
|
126
127
|
- spec/cucumber/messages/time_conversion_spec.rb
|
127
128
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|
129
|
+
- spec/cucumber/messages/version_spec.rb
|
128
130
|
- spec/cucumber/messages/protobuf_serialization_spec.rb
|
129
131
|
- spec/cucumber/messages/id_generator_spec.rb
|
130
132
|
- spec/capture_warnings.rb
|