cucumber-messages 11.1.1 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cucumber/messages.pb.rb +96 -228
- data/spec/cucumber/messages/ndjson_serialization_spec.rb +10 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 693e4a396cf9cf483a96e3bd5dc6344a9820dcab73db0b1477c84fb4b86e5be0
|
4
|
+
data.tar.gz: aeea624a27a445c78bb232d27d6ee13767f581177b10d94b23dd9339b91e1592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbb6940603f6d0d142a7ffb50ed2f577cfde9318c7f48a1367f6b791bdf7d09735a1b73fec1b98fbb650445ffaa0e57c5736bc69d157d875b77b6d03c9c359e8
|
7
|
+
data.tar.gz: 0fa38302962f45a29c74f1b4652590eb98f7b27e71a036386d68f57da8a581405647499d74b48b717c789158197be3ddf0c2c3f549d3f33c96c4dcca46756d7b
|
data/lib/cucumber/messages.pb.rb
CHANGED
@@ -9,26 +9,12 @@ module Cucumber
|
|
9
9
|
module Messages
|
10
10
|
::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
|
11
11
|
|
12
|
-
##
|
13
|
-
# Enum Classes
|
14
|
-
#
|
15
|
-
class SourcesOrderType < ::Protobuf::Enum
|
16
|
-
define :ORDER_OF_DEFINITION, 0
|
17
|
-
define :RANDOM, 1
|
18
|
-
end
|
19
|
-
|
20
|
-
class StepDefinitionPatternType < ::Protobuf::Enum
|
21
|
-
define :CUCUMBER_EXPRESSION, 0
|
22
|
-
define :REGULAR_EXPRESSION, 1
|
23
|
-
end
|
24
|
-
|
25
|
-
|
26
12
|
##
|
27
13
|
# Message Classes
|
28
14
|
#
|
15
|
+
class Envelope < ::Protobuf::Message; end
|
29
16
|
class Timestamp < ::Protobuf::Message; end
|
30
17
|
class Duration < ::Protobuf::Message; end
|
31
|
-
class Envelope < ::Protobuf::Message; end
|
32
18
|
class Location < ::Protobuf::Message; end
|
33
19
|
class SourceReference < ::Protobuf::Message; end
|
34
20
|
class Source < ::Protobuf::Message; end
|
@@ -95,18 +81,22 @@ module Cucumber
|
|
95
81
|
|
96
82
|
class TestCase < ::Protobuf::Message
|
97
83
|
class TestStep < ::Protobuf::Message
|
98
|
-
class StepMatchArgumentsList < ::Protobuf::Message
|
84
|
+
class StepMatchArgumentsList < ::Protobuf::Message
|
85
|
+
class StepMatchArgument < ::Protobuf::Message
|
86
|
+
class Group < ::Protobuf::Message; end
|
87
|
+
|
88
|
+
end
|
89
|
+
|
90
|
+
|
91
|
+
end
|
92
|
+
|
99
93
|
|
100
94
|
end
|
101
95
|
|
102
96
|
|
103
97
|
end
|
104
98
|
|
105
|
-
class PickleAccepted < ::Protobuf::Message; end
|
106
|
-
class PickleRejected < ::Protobuf::Message; end
|
107
99
|
class TestRunStarted < ::Protobuf::Message; end
|
108
|
-
class TestCasePreparedStep < ::Protobuf::Message; end
|
109
|
-
class TestCasePrepared < ::Protobuf::Message; end
|
110
100
|
class TestCaseStarted < ::Protobuf::Message
|
111
101
|
class Platform < ::Protobuf::Message; end
|
112
102
|
|
@@ -114,47 +104,40 @@ module Cucumber
|
|
114
104
|
|
115
105
|
class TestCaseFinished < ::Protobuf::Message; end
|
116
106
|
class TestStepStarted < ::Protobuf::Message; end
|
117
|
-
class TestStepFinished < ::Protobuf::Message
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
107
|
+
class TestStepFinished < ::Protobuf::Message
|
108
|
+
class TestStepResult < ::Protobuf::Message
|
109
|
+
class Status < ::Protobuf::Enum
|
110
|
+
define :UNKNOWN, 0
|
111
|
+
define :PASSED, 1
|
112
|
+
define :SKIPPED, 2
|
113
|
+
define :PENDING, 3
|
114
|
+
define :UNDEFINED, 4
|
115
|
+
define :AMBIGUOUS, 5
|
116
|
+
define :FAILED, 6
|
117
|
+
end
|
118
|
+
|
127
119
|
end
|
128
120
|
|
121
|
+
|
129
122
|
end
|
130
123
|
|
131
124
|
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
125
|
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
|
126
|
+
class StepDefinition < ::Protobuf::Message
|
127
|
+
class StepDefinitionPattern < ::Protobuf::Message
|
128
|
+
class StepDefinitionPatternType < ::Protobuf::Enum
|
129
|
+
define :CUCUMBER_EXPRESSION, 0
|
130
|
+
define :REGULAR_EXPRESSION, 1
|
131
|
+
end
|
132
|
+
|
133
|
+
end
|
134
|
+
|
153
135
|
|
154
136
|
end
|
155
137
|
|
156
|
-
class
|
157
|
-
class
|
138
|
+
class ParameterType < ::Protobuf::Message; end
|
139
|
+
class UndefinedParameterType < ::Protobuf::Message; end
|
140
|
+
class ParseError < ::Protobuf::Message; end
|
158
141
|
|
159
142
|
|
160
143
|
##
|
@@ -166,6 +149,25 @@ module Cucumber
|
|
166
149
|
##
|
167
150
|
# Message Fields
|
168
151
|
#
|
152
|
+
class Envelope
|
153
|
+
optional ::Cucumber::Messages::Source, :source, 1
|
154
|
+
optional ::Cucumber::Messages::GherkinDocument, :gherkin_document, 2
|
155
|
+
optional ::Cucumber::Messages::Pickle, :pickle, 3
|
156
|
+
optional ::Cucumber::Messages::StepDefinition, :step_definition, 4
|
157
|
+
optional ::Cucumber::Messages::Hook, :hook, 5
|
158
|
+
optional ::Cucumber::Messages::ParameterType, :parameter_type, 6
|
159
|
+
optional ::Cucumber::Messages::TestCase, :test_case, 7
|
160
|
+
optional ::Cucumber::Messages::UndefinedParameterType, :undefined_parameter_type, 8
|
161
|
+
optional ::Cucumber::Messages::TestRunStarted, :test_run_started, 9
|
162
|
+
optional ::Cucumber::Messages::TestCaseStarted, :test_case_started, 10
|
163
|
+
optional ::Cucumber::Messages::TestStepStarted, :test_step_started, 11
|
164
|
+
optional ::Cucumber::Messages::Attachment, :attachment, 12
|
165
|
+
optional ::Cucumber::Messages::TestStepFinished, :test_step_finished, 13
|
166
|
+
optional ::Cucumber::Messages::TestCaseFinished, :test_case_finished, 14
|
167
|
+
optional ::Cucumber::Messages::TestRunFinished, :test_run_finished, 15
|
168
|
+
optional ::Cucumber::Messages::ParseError, :parse_error, 16
|
169
|
+
end
|
170
|
+
|
169
171
|
class Timestamp
|
170
172
|
optional :int64, :seconds, 1
|
171
173
|
optional :int32, :nanos, 2
|
@@ -176,37 +178,6 @@ module Cucumber
|
|
176
178
|
optional :int32, :nanos, 2
|
177
179
|
end
|
178
180
|
|
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
181
|
class Location
|
211
182
|
optional :uint32, :line, 1
|
212
183
|
optional :uint32, :column, 2
|
@@ -220,7 +191,7 @@ module Cucumber
|
|
220
191
|
class Source
|
221
192
|
optional :string, :uri, 1
|
222
193
|
optional :string, :data, 2
|
223
|
-
optional :string, :media_type,
|
194
|
+
optional :string, :media_type, 3
|
224
195
|
end
|
225
196
|
|
226
197
|
class GherkinDocument
|
@@ -243,6 +214,7 @@ module Cucumber
|
|
243
214
|
optional :string, :name, 3
|
244
215
|
optional :string, :description, 4
|
245
216
|
repeated ::Cucumber::Messages::GherkinDocument::Feature::FeatureChild::RuleChild, :children, 5
|
217
|
+
optional :string, :id, 6
|
246
218
|
end
|
247
219
|
|
248
220
|
class RuleChild
|
@@ -261,6 +233,7 @@ module Cucumber
|
|
261
233
|
optional :string, :name, 3
|
262
234
|
optional :string, :description, 4
|
263
235
|
repeated ::Cucumber::Messages::GherkinDocument::Feature::Step, :steps, 5
|
236
|
+
optional :string, :id, 6
|
264
237
|
end
|
265
238
|
|
266
239
|
class Scenario
|
@@ -272,6 +245,7 @@ module Cucumber
|
|
272
245
|
optional :string, :description, 5
|
273
246
|
optional ::Cucumber::Messages::GherkinDocument::Feature::TableRow, :table_header, 6
|
274
247
|
repeated ::Cucumber::Messages::GherkinDocument::Feature::TableRow, :table_body, 7
|
248
|
+
optional :string, :id, 8
|
275
249
|
end
|
276
250
|
|
277
251
|
optional ::Cucumber::Messages::Location, :location, 1
|
@@ -311,9 +285,9 @@ module Cucumber
|
|
311
285
|
optional ::Cucumber::Messages::Location, :location, 1
|
312
286
|
optional :string, :keyword, 2
|
313
287
|
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,
|
288
|
+
optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DocString, :doc_string, 4
|
289
|
+
optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DataTable, :data_table, 5
|
290
|
+
optional :string, :id, 6
|
317
291
|
end
|
318
292
|
|
319
293
|
optional ::Cucumber::Messages::Location, :location, 1
|
@@ -332,11 +306,11 @@ module Cucumber
|
|
332
306
|
|
333
307
|
class Attachment
|
334
308
|
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,
|
309
|
+
optional :string, :test_step_id, 2
|
310
|
+
optional :string, :test_case_started_id, 3
|
311
|
+
optional :string, :body, 4
|
312
|
+
optional :string, :media_type, 5
|
313
|
+
optional ::Cucumber::Messages::Attachment::ContentEncoding, :content_encoding, 6
|
340
314
|
end
|
341
315
|
|
342
316
|
class Pickle
|
@@ -386,7 +360,18 @@ module Cucumber
|
|
386
360
|
class TestCase
|
387
361
|
class TestStep
|
388
362
|
class StepMatchArgumentsList
|
389
|
-
|
363
|
+
class StepMatchArgument
|
364
|
+
class Group
|
365
|
+
optional :uint32, :start, 1
|
366
|
+
optional :string, :value, 2
|
367
|
+
repeated ::Cucumber::Messages::TestCase::TestStep::StepMatchArgumentsList::StepMatchArgument::Group, :children, 3
|
368
|
+
end
|
369
|
+
|
370
|
+
optional :string, :parameter_type_name, 1
|
371
|
+
optional ::Cucumber::Messages::TestCase::TestStep::StepMatchArgumentsList::StepMatchArgument::Group, :group, 2
|
372
|
+
end
|
373
|
+
|
374
|
+
repeated ::Cucumber::Messages::TestCase::TestStep::StepMatchArgumentsList::StepMatchArgument, :step_match_arguments, 1
|
390
375
|
end
|
391
376
|
|
392
377
|
optional :string, :id, 1
|
@@ -401,28 +386,10 @@ module Cucumber
|
|
401
386
|
repeated ::Cucumber::Messages::TestCase::TestStep, :test_steps, 3
|
402
387
|
end
|
403
388
|
|
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
389
|
class TestRunStarted
|
413
390
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 1
|
414
391
|
end
|
415
392
|
|
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
393
|
class TestCaseStarted
|
427
394
|
class Platform
|
428
395
|
optional :string, :implementation, 1
|
@@ -450,69 +417,25 @@ module Cucumber
|
|
450
417
|
end
|
451
418
|
|
452
419
|
class TestStepFinished
|
453
|
-
|
420
|
+
class TestStepResult
|
421
|
+
optional ::Cucumber::Messages::TestStepFinished::TestStepResult::Status, :status, 1
|
422
|
+
optional :string, :message, 2
|
423
|
+
optional ::Cucumber::Messages::Duration, :duration, 3
|
424
|
+
optional :bool, :will_be_retried, 4
|
425
|
+
end
|
426
|
+
|
427
|
+
optional ::Cucumber::Messages::TestStepFinished::TestStepResult, :test_step_result, 1
|
454
428
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 2
|
455
429
|
optional :string, :test_step_id, 3
|
456
430
|
optional :string, :test_case_started_id, 4
|
457
431
|
end
|
458
432
|
|
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
433
|
class TestRunFinished
|
467
434
|
optional :bool, :success, 1
|
468
435
|
optional ::Cucumber::Messages::Timestamp, :timestamp, 2
|
469
436
|
optional :string, :message, 3
|
470
437
|
end
|
471
438
|
|
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
439
|
class Hook
|
517
440
|
optional :string, :id, 1
|
518
441
|
optional :string, :tag_expression, 2
|
@@ -520,21 +443,22 @@ module Cucumber
|
|
520
443
|
end
|
521
444
|
|
522
445
|
class StepDefinition
|
446
|
+
class StepDefinitionPattern
|
447
|
+
optional :string, :source, 1
|
448
|
+
optional ::Cucumber::Messages::StepDefinition::StepDefinitionPattern::StepDefinitionPatternType, :type, 2
|
449
|
+
end
|
450
|
+
|
523
451
|
optional :string, :id, 1
|
524
|
-
optional ::Cucumber::Messages::StepDefinitionPattern, :pattern, 2
|
452
|
+
optional ::Cucumber::Messages::StepDefinition::StepDefinitionPattern, :pattern, 2
|
525
453
|
optional ::Cucumber::Messages::SourceReference, :source_reference, 3
|
526
454
|
end
|
527
455
|
|
528
|
-
class StepDefinitionPattern
|
529
|
-
optional :string, :source, 1
|
530
|
-
optional ::Cucumber::Messages::StepDefinitionPatternType, :type, 2
|
531
|
-
end
|
532
|
-
|
533
456
|
class ParameterType
|
534
457
|
optional :string, :name, 1
|
535
458
|
repeated :string, :regular_expressions, 2
|
536
459
|
optional :bool, :prefer_for_regular_expression_match, 3
|
537
460
|
optional :bool, :use_for_snippets, 4
|
461
|
+
optional :string, :id, 5
|
538
462
|
end
|
539
463
|
|
540
464
|
class UndefinedParameterType
|
@@ -542,65 +466,9 @@ module Cucumber
|
|
542
466
|
optional :string, :expression, 2
|
543
467
|
end
|
544
468
|
|
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
|
469
|
+
class ParseError
|
470
|
+
optional ::Cucumber::Messages::SourceReference, :source, 1
|
471
|
+
optional :string, :message, 2
|
604
472
|
end
|
605
473
|
|
606
474
|
end
|
@@ -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.0.0
|
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-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: protobuf-cucumber
|
@@ -121,7 +121,7 @@ rubyforge_project:
|
|
121
121
|
rubygems_version: 2.7.6.2
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
|
-
summary: cucumber-messages-
|
124
|
+
summary: cucumber-messages-12.0.0
|
125
125
|
test_files:
|
126
126
|
- spec/cucumber/messages/time_conversion_spec.rb
|
127
127
|
- spec/cucumber/messages/ndjson_serialization_spec.rb
|