cucumber-messages 8.0.0 → 9.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a30233674057da24fc9163c1cf3b5fb01d4b419b1f51a2f8b40355a3f48e604
4
- data.tar.gz: da293cb418e9faa3749e2818488588fad8f389816b84cbb20670cf5ff4ebcf9a
3
+ metadata.gz: 780d68ebc4cca0ebc0ee1b06cadab96a3a07d1cd80a7ccec46053e488c6c064d
4
+ data.tar.gz: 7bd02b7d059e27fb5412c23c4e57fe9ce6778a914d7d638d443b4a956200df55
5
5
  SHA512:
6
- metadata.gz: 78f1607fbe53e322ca22f055b63751927ee212950e2e6e421afd17bd92254d1ff03fba139668a59bd27e452c0fa6136a00790a33a247fd3d8acc5c35433f87c2
7
- data.tar.gz: b8008401ca5cd17a07ea5646e008bb999823f4cddf536824afd60892979ec6ef53197fac499d2cde3d055a14515fb8ecc5679f198ad5784a52e9930b3e1d34c4
6
+ metadata.gz: '0894d9730058e2428080ea008205b7478939b179d396643bd01e484be660121a64348f41c1e6b79ed2baaad01f38fdd03a6bed75c8294b86c9c8f264ee545cb9'
7
+ data.tar.gz: d64973faa0d9a289c20b66b51092026b79d4f5cc49deb7e877c2f9e450ae2d2767338fc17f6123f8e54dee2b4ee5cbf3067955889faf25f5f5dafac1b723a323
@@ -0,0 +1,594 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+ module Cucumber
9
+ module Messages
10
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
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
+ ##
27
+ # Message Classes
28
+ #
29
+ class Timestamp < ::Protobuf::Message; end
30
+ class Duration < ::Protobuf::Message; end
31
+ class Envelope < ::Protobuf::Message; end
32
+ class Location < ::Protobuf::Message; end
33
+ class SourceReference < ::Protobuf::Message; end
34
+ class Source < ::Protobuf::Message; end
35
+ class GherkinDocument < ::Protobuf::Message
36
+ class Comment < ::Protobuf::Message; end
37
+ class Feature < ::Protobuf::Message
38
+ class Tag < ::Protobuf::Message; end
39
+ class FeatureChild < ::Protobuf::Message
40
+ class Rule < ::Protobuf::Message; end
41
+ class RuleChild < ::Protobuf::Message; end
42
+
43
+ end
44
+
45
+ class Background < ::Protobuf::Message; end
46
+ class Scenario < ::Protobuf::Message
47
+ class Examples < ::Protobuf::Message; end
48
+
49
+ end
50
+
51
+ class TableRow < ::Protobuf::Message
52
+ class TableCell < ::Protobuf::Message; end
53
+
54
+ end
55
+
56
+ class Step < ::Protobuf::Message
57
+ class DataTable < ::Protobuf::Message; end
58
+ class DocString < ::Protobuf::Message; end
59
+
60
+ end
61
+
62
+
63
+ end
64
+
65
+
66
+ end
67
+
68
+ class Attachment < ::Protobuf::Message; end
69
+ class Pickle < ::Protobuf::Message
70
+ class PickleTag < ::Protobuf::Message; end
71
+ class PickleStep < ::Protobuf::Message; end
72
+
73
+ end
74
+
75
+ class PickleStepArgument < ::Protobuf::Message
76
+ class PickleDocString < ::Protobuf::Message; end
77
+ class PickleTable < ::Protobuf::Message
78
+ class PickleTableRow < ::Protobuf::Message
79
+ class PickleTableCell < ::Protobuf::Message; end
80
+
81
+ end
82
+
83
+
84
+ end
85
+
86
+
87
+ end
88
+
89
+ class TestCase < ::Protobuf::Message
90
+ class TestStep < ::Protobuf::Message
91
+ class StepMatchArgumentsList < ::Protobuf::Message; end
92
+
93
+ end
94
+
95
+
96
+ end
97
+
98
+ class PickleAccepted < ::Protobuf::Message; end
99
+ class PickleRejected < ::Protobuf::Message; end
100
+ class TestRunStarted < ::Protobuf::Message; end
101
+ class TestCasePreparedStep < ::Protobuf::Message; end
102
+ class TestCasePrepared < ::Protobuf::Message; end
103
+ class TestCaseStarted < ::Protobuf::Message
104
+ class Platform < ::Protobuf::Message; end
105
+
106
+ end
107
+
108
+ class TestCaseFinished < ::Protobuf::Message; end
109
+ class TestStepStarted < ::Protobuf::Message; end
110
+ class TestStepFinished < ::Protobuf::Message; end
111
+ class TestResult < ::Protobuf::Message
112
+ class Status < ::Protobuf::Enum
113
+ define :UNKNOWN, 0
114
+ define :PASSED, 1
115
+ define :SKIPPED, 2
116
+ define :PENDING, 3
117
+ define :UNDEFINED, 4
118
+ define :AMBIGUOUS, 5
119
+ define :FAILED, 6
120
+ end
121
+
122
+ end
123
+
124
+ class TestRunFinished < ::Protobuf::Message; end
125
+ class CommandStart < ::Protobuf::Message; end
126
+ class SourcesConfig < ::Protobuf::Message; end
127
+ class SourcesFilterConfig < ::Protobuf::Message; end
128
+ class UriToLinesMapping < ::Protobuf::Message; end
129
+ class SourcesOrder < ::Protobuf::Message; end
130
+ class RuntimeConfig < ::Protobuf::Message; end
131
+ class SupportCodeConfig < ::Protobuf::Message; end
132
+ class Hook < ::Protobuf::Message; end
133
+ class StepDefinition < ::Protobuf::Message; end
134
+ class StepDefinitionPattern < ::Protobuf::Message; end
135
+ class ParameterType < ::Protobuf::Message; end
136
+ class CommandActionComplete < ::Protobuf::Message; end
137
+ class CommandRunBeforeTestRunHooks < ::Protobuf::Message; end
138
+ class CommandRunAfterTestRunHooks < ::Protobuf::Message; end
139
+ class CommandInitializeTestCase < ::Protobuf::Message; end
140
+ class CommandRunBeforeTestCaseHook < ::Protobuf::Message; end
141
+ class CommandRunAfterTestCaseHook < ::Protobuf::Message; end
142
+ class CommandRunTestStep < ::Protobuf::Message; end
143
+ class StepMatchArgument < ::Protobuf::Message
144
+ class Group < ::Protobuf::Message; end
145
+
146
+ end
147
+
148
+ class CommandGenerateSnippet < ::Protobuf::Message; end
149
+ class GeneratedExpression < ::Protobuf::Message; end
150
+
151
+
152
+ ##
153
+ # File Options
154
+ #
155
+ set_option :go_package, "messages"
156
+
157
+
158
+ ##
159
+ # Message Fields
160
+ #
161
+ class Timestamp
162
+ optional :int64, :seconds, 1
163
+ optional :int32, :nanos, 2
164
+ end
165
+
166
+ class Duration
167
+ optional :int64, :seconds, 1
168
+ optional :int32, :nanos, 2
169
+ end
170
+
171
+ class Envelope
172
+ optional ::Cucumber::Messages::Source, :source, 1
173
+ optional ::Cucumber::Messages::GherkinDocument, :gherkin_document, 2
174
+ optional ::Cucumber::Messages::Pickle, :pickle, 3
175
+ optional ::Cucumber::Messages::Attachment, :attachment, 4
176
+ optional ::Cucumber::Messages::TestCaseStarted, :test_case_started, 5
177
+ optional ::Cucumber::Messages::TestStepStarted, :test_step_started, 6
178
+ optional ::Cucumber::Messages::TestStepFinished, :test_step_finished, 7
179
+ optional ::Cucumber::Messages::TestCaseFinished, :test_case_finished, 8
180
+ optional ::Cucumber::Messages::PickleAccepted, :pickle_accepted, 9
181
+ optional ::Cucumber::Messages::PickleRejected, :pickle_rejected, 10
182
+ optional ::Cucumber::Messages::TestCasePrepared, :test_case_prepared, 11
183
+ optional ::Cucumber::Messages::TestRunStarted, :test_run_started, 12
184
+ optional ::Cucumber::Messages::TestRunFinished, :test_run_finished, 13
185
+ optional ::Cucumber::Messages::CommandStart, :command_start, 14
186
+ optional ::Cucumber::Messages::CommandActionComplete, :command_action_complete, 15
187
+ optional ::Cucumber::Messages::CommandRunBeforeTestRunHooks, :command_run_before_test_run_hooks, 16
188
+ optional ::Cucumber::Messages::CommandInitializeTestCase, :command_initialize_test_case, 17
189
+ optional ::Cucumber::Messages::CommandRunBeforeTestCaseHook, :command_run_before_test_case_hook, 18
190
+ optional ::Cucumber::Messages::CommandRunTestStep, :command_run_test_step, 19
191
+ optional ::Cucumber::Messages::CommandRunAfterTestCaseHook, :command_run_after_test_case_hook, 20
192
+ optional ::Cucumber::Messages::CommandRunAfterTestRunHooks, :command_run_after_test_run_hooks, 21
193
+ optional ::Cucumber::Messages::CommandGenerateSnippet, :command_generate_snippet, 22
194
+ optional :string, :command_error, 23
195
+ optional ::Cucumber::Messages::TestCase, :test_case, 24
196
+ optional ::Cucumber::Messages::StepDefinition, :step_definition, 25
197
+ optional ::Cucumber::Messages::Hook, :hook, 26
198
+ optional ::Cucumber::Messages::ParameterType, :parameter_type, 27
199
+ end
200
+
201
+ class Location
202
+ optional :uint32, :line, 1
203
+ optional :uint32, :column, 2
204
+ end
205
+
206
+ class SourceReference
207
+ optional :string, :uri, 1
208
+ optional ::Cucumber::Messages::Location, :location, 2
209
+ end
210
+
211
+ class Source
212
+ optional :string, :uri, 1
213
+ optional :string, :data, 2
214
+ optional :string, :media_type, 4
215
+ end
216
+
217
+ class GherkinDocument
218
+ class Comment
219
+ optional ::Cucumber::Messages::Location, :location, 1
220
+ optional :string, :text, 2
221
+ end
222
+
223
+ class Feature
224
+ class Tag
225
+ optional ::Cucumber::Messages::Location, :location, 1
226
+ optional :string, :name, 2
227
+ optional :string, :id, 3
228
+ end
229
+
230
+ class FeatureChild
231
+ class Rule
232
+ optional ::Cucumber::Messages::Location, :location, 1
233
+ optional :string, :keyword, 2
234
+ optional :string, :name, 3
235
+ optional :string, :description, 4
236
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::FeatureChild::RuleChild, :children, 5
237
+ end
238
+
239
+ class RuleChild
240
+ optional ::Cucumber::Messages::GherkinDocument::Feature::Background, :background, 1
241
+ optional ::Cucumber::Messages::GherkinDocument::Feature::Scenario, :scenario, 2
242
+ end
243
+
244
+ optional ::Cucumber::Messages::GherkinDocument::Feature::FeatureChild::Rule, :rule, 1
245
+ optional ::Cucumber::Messages::GherkinDocument::Feature::Background, :background, 2
246
+ optional ::Cucumber::Messages::GherkinDocument::Feature::Scenario, :scenario, 3
247
+ end
248
+
249
+ class Background
250
+ optional ::Cucumber::Messages::Location, :location, 1
251
+ optional :string, :keyword, 2
252
+ optional :string, :name, 3
253
+ optional :string, :description, 4
254
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::Step, :steps, 5
255
+ end
256
+
257
+ class Scenario
258
+ class Examples
259
+ optional ::Cucumber::Messages::Location, :location, 1
260
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::Tag, :tags, 2
261
+ optional :string, :keyword, 3
262
+ optional :string, :name, 4
263
+ optional :string, :description, 5
264
+ optional ::Cucumber::Messages::GherkinDocument::Feature::TableRow, :table_header, 6
265
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::TableRow, :table_body, 7
266
+ end
267
+
268
+ optional ::Cucumber::Messages::Location, :location, 1
269
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::Tag, :tags, 2
270
+ optional :string, :keyword, 3
271
+ optional :string, :name, 4
272
+ optional :string, :description, 5
273
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::Step, :steps, 6
274
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::Scenario::Examples, :examples, 7
275
+ optional :string, :id, 8
276
+ end
277
+
278
+ class TableRow
279
+ class TableCell
280
+ optional ::Cucumber::Messages::Location, :location, 1
281
+ optional :string, :value, 2
282
+ end
283
+
284
+ optional ::Cucumber::Messages::Location, :location, 1
285
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::TableRow::TableCell, :cells, 2
286
+ optional :string, :id, 3
287
+ end
288
+
289
+ class Step
290
+ class DataTable
291
+ optional ::Cucumber::Messages::Location, :location, 1
292
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::TableRow, :rows, 2
293
+ end
294
+
295
+ class DocString
296
+ optional ::Cucumber::Messages::Location, :location, 1
297
+ optional :string, :media_type, 2
298
+ optional :string, :content, 3
299
+ optional :string, :delimiter, 4
300
+ end
301
+
302
+ optional ::Cucumber::Messages::Location, :location, 1
303
+ optional :string, :keyword, 2
304
+ optional :string, :text, 3
305
+ optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DocString, :doc_string, 5
306
+ optional ::Cucumber::Messages::GherkinDocument::Feature::Step::DataTable, :data_table, 6
307
+ optional :string, :id, 7
308
+ end
309
+
310
+ optional ::Cucumber::Messages::Location, :location, 1
311
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::Tag, :tags, 2
312
+ optional :string, :language, 3
313
+ optional :string, :keyword, 4
314
+ optional :string, :name, 5
315
+ optional :string, :description, 6
316
+ repeated ::Cucumber::Messages::GherkinDocument::Feature::FeatureChild, :children, 7
317
+ end
318
+
319
+ optional :string, :uri, 1
320
+ optional ::Cucumber::Messages::GherkinDocument::Feature, :feature, 2
321
+ repeated ::Cucumber::Messages::GherkinDocument::Comment, :comments, 3
322
+ end
323
+
324
+ class Attachment
325
+ optional ::Cucumber::Messages::SourceReference, :source, 1
326
+ optional :string, :test_step_id, 4
327
+ optional :string, :test_case_started_id, 5
328
+ optional :string, :text, 6
329
+ optional :bytes, :binary, 7
330
+ optional :string, :media_type, 8
331
+ end
332
+
333
+ class Pickle
334
+ class PickleTag
335
+ optional :string, :name, 1
336
+ optional :string, :ast_node_id, 2
337
+ end
338
+
339
+ class PickleStep
340
+ optional :string, :text, 1
341
+ optional ::Cucumber::Messages::PickleStepArgument, :argument, 2
342
+ optional :string, :id, 3
343
+ repeated :string, :ast_node_ids, 4
344
+ end
345
+
346
+ optional :string, :id, 1
347
+ optional :string, :uri, 2
348
+ optional :string, :name, 3
349
+ optional :string, :language, 4
350
+ repeated ::Cucumber::Messages::Pickle::PickleStep, :steps, 5
351
+ repeated ::Cucumber::Messages::Pickle::PickleTag, :tags, 6
352
+ repeated :string, :ast_node_ids, 7
353
+ end
354
+
355
+ class PickleStepArgument
356
+ class PickleDocString
357
+ optional :string, :media_type, 1
358
+ optional :string, :content, 2
359
+ end
360
+
361
+ class PickleTable
362
+ class PickleTableRow
363
+ class PickleTableCell
364
+ optional :string, :value, 1
365
+ end
366
+
367
+ repeated ::Cucumber::Messages::PickleStepArgument::PickleTable::PickleTableRow::PickleTableCell, :cells, 1
368
+ end
369
+
370
+ repeated ::Cucumber::Messages::PickleStepArgument::PickleTable::PickleTableRow, :rows, 1
371
+ end
372
+
373
+ optional ::Cucumber::Messages::PickleStepArgument::PickleDocString, :doc_string, 1
374
+ optional ::Cucumber::Messages::PickleStepArgument::PickleTable, :data_table, 2
375
+ end
376
+
377
+ class TestCase
378
+ class TestStep
379
+ class StepMatchArgumentsList
380
+ repeated ::Cucumber::Messages::StepMatchArgument, :step_match_arguments, 1
381
+ end
382
+
383
+ optional :string, :id, 1
384
+ optional :string, :pickle_step_id, 2
385
+ repeated :string, :step_definition_ids, 3
386
+ repeated ::Cucumber::Messages::TestCase::TestStep::StepMatchArgumentsList, :step_match_arguments_lists, 4
387
+ optional :string, :hook_id, 5
388
+ end
389
+
390
+ optional :string, :id, 1
391
+ optional :string, :pickle_id, 2
392
+ repeated ::Cucumber::Messages::TestCase::TestStep, :test_steps, 3
393
+ end
394
+
395
+ class PickleAccepted
396
+ optional :string, :pickle_id, 1
397
+ end
398
+
399
+ class PickleRejected
400
+ optional :string, :pickle_id, 2
401
+ end
402
+
403
+ class TestRunStarted
404
+ optional ::Cucumber::Messages::Timestamp, :timestamp, 1
405
+ end
406
+
407
+ class TestCasePreparedStep
408
+ optional ::Cucumber::Messages::SourceReference, :source_location, 1
409
+ optional ::Cucumber::Messages::SourceReference, :action_location, 2
410
+ end
411
+
412
+ class TestCasePrepared
413
+ optional :string, :pickle_id, 1
414
+ repeated ::Cucumber::Messages::TestCasePreparedStep, :steps, 2
415
+ end
416
+
417
+ class TestCaseStarted
418
+ class Platform
419
+ optional :string, :implementation, 1
420
+ optional :string, :version, 2
421
+ optional :string, :os, 3
422
+ optional :string, :cpu, 4
423
+ end
424
+
425
+ optional ::Cucumber::Messages::Timestamp, :timestamp, 1
426
+ optional ::Cucumber::Messages::TestCaseStarted::Platform, :platform, 2
427
+ optional :uint32, :attempt, 3
428
+ optional :string, :test_case_id, 4
429
+ optional :string, :id, 5
430
+ end
431
+
432
+ class TestCaseFinished
433
+ optional ::Cucumber::Messages::Timestamp, :timestamp, 1
434
+ optional :string, :test_case_started_id, 3
435
+ end
436
+
437
+ class TestStepStarted
438
+ optional ::Cucumber::Messages::Timestamp, :timestamp, 1
439
+ optional :string, :test_step_id, 2
440
+ optional :string, :test_case_started_id, 3
441
+ end
442
+
443
+ class TestStepFinished
444
+ optional ::Cucumber::Messages::TestResult, :test_result, 1
445
+ optional ::Cucumber::Messages::Timestamp, :timestamp, 2
446
+ optional :string, :test_step_id, 3
447
+ optional :string, :test_case_started_id, 4
448
+ end
449
+
450
+ class TestResult
451
+ optional ::Cucumber::Messages::TestResult::Status, :status, 1
452
+ optional :string, :message, 2
453
+ optional ::Cucumber::Messages::Duration, :duration, 3
454
+ optional :bool, :will_be_retried, 4
455
+ end
456
+
457
+ class TestRunFinished
458
+ optional :bool, :success, 1
459
+ optional ::Cucumber::Messages::Timestamp, :timestamp, 2
460
+ end
461
+
462
+ class CommandStart
463
+ optional :string, :base_directory, 2
464
+ optional ::Cucumber::Messages::SourcesConfig, :sources_config, 3
465
+ optional ::Cucumber::Messages::RuntimeConfig, :runtime_config, 4
466
+ optional ::Cucumber::Messages::SupportCodeConfig, :support_code_config, 5
467
+ end
468
+
469
+ class SourcesConfig
470
+ repeated :string, :absolute_paths, 1
471
+ optional :string, :language, 2
472
+ optional ::Cucumber::Messages::SourcesFilterConfig, :filters, 3
473
+ optional ::Cucumber::Messages::SourcesOrder, :order, 4
474
+ end
475
+
476
+ class SourcesFilterConfig
477
+ optional :string, :tag_expression, 1
478
+ repeated :string, :name_regular_expressions, 2
479
+ repeated ::Cucumber::Messages::UriToLinesMapping, :uri_to_lines_mapping, 3
480
+ end
481
+
482
+ class UriToLinesMapping
483
+ optional :string, :absolute_path, 1
484
+ repeated :uint64, :lines, 2
485
+ end
486
+
487
+ class SourcesOrder
488
+ optional ::Cucumber::Messages::SourcesOrderType, :type, 1
489
+ optional :uint64, :seed, 2
490
+ end
491
+
492
+ class RuntimeConfig
493
+ optional :bool, :is_fail_fast, 1
494
+ optional :bool, :is_dry_run, 2
495
+ optional :bool, :is_strict, 3
496
+ optional :uint64, :max_parallel, 4
497
+ end
498
+
499
+ class SupportCodeConfig
500
+ repeated ::Cucumber::Messages::Hook, :before_test_case_hooks, 1
501
+ repeated ::Cucumber::Messages::Hook, :after_test_case_hooks, 2
502
+ repeated ::Cucumber::Messages::StepDefinition, :step_definitions, 3
503
+ repeated ::Cucumber::Messages::ParameterType, :parameter_types, 4
504
+ end
505
+
506
+ class Hook
507
+ optional :string, :id, 1
508
+ optional :string, :tag_expression, 2
509
+ optional ::Cucumber::Messages::SourceReference, :source_reference, 3
510
+ end
511
+
512
+ class StepDefinition
513
+ optional :string, :id, 1
514
+ optional ::Cucumber::Messages::StepDefinitionPattern, :pattern, 2
515
+ optional ::Cucumber::Messages::SourceReference, :source_reference, 3
516
+ end
517
+
518
+ class StepDefinitionPattern
519
+ optional :string, :source, 1
520
+ optional ::Cucumber::Messages::StepDefinitionPatternType, :type, 2
521
+ end
522
+
523
+ class ParameterType
524
+ optional :string, :name, 1
525
+ repeated :string, :regular_expressions, 2
526
+ optional :bool, :prefer_for_regular_expression_match, 3
527
+ optional :bool, :use_for_snippets, 4
528
+ end
529
+
530
+ class CommandActionComplete
531
+ optional :string, :completed_id, 1
532
+ optional ::Cucumber::Messages::TestResult, :test_result, 2
533
+ optional :string, :snippet, 3
534
+ end
535
+
536
+ class CommandRunBeforeTestRunHooks
537
+ optional :string, :action_id, 1
538
+ end
539
+
540
+ class CommandRunAfterTestRunHooks
541
+ optional :string, :action_id, 1
542
+ end
543
+
544
+ class CommandInitializeTestCase
545
+ optional :string, :action_id, 1
546
+ optional ::Cucumber::Messages::Pickle, :pickle, 2
547
+ end
548
+
549
+ class CommandRunBeforeTestCaseHook
550
+ optional :string, :action_id, 1
551
+ optional :string, :hook_id, 2
552
+ optional :string, :test_case_id, 3
553
+ end
554
+
555
+ class CommandRunAfterTestCaseHook
556
+ optional :string, :action_id, 1
557
+ optional :string, :hook_id, 2
558
+ optional :string, :test_case_id, 3
559
+ end
560
+
561
+ class CommandRunTestStep
562
+ optional :string, :action_id, 1
563
+ optional :string, :step_definition_id, 2
564
+ repeated ::Cucumber::Messages::StepMatchArgument, :step_match_arguments, 3
565
+ optional ::Cucumber::Messages::PickleStepArgument, :pickle_step_argument, 4
566
+ optional :string, :test_case_id, 5
567
+ end
568
+
569
+ class StepMatchArgument
570
+ class Group
571
+ optional :uint32, :start, 1
572
+ optional :string, :value, 2
573
+ repeated ::Cucumber::Messages::StepMatchArgument::Group, :children, 3
574
+ end
575
+
576
+ optional :string, :parameter_type_name, 1
577
+ optional ::Cucumber::Messages::StepMatchArgument::Group, :group, 2
578
+ end
579
+
580
+ class CommandGenerateSnippet
581
+ optional :string, :action_id, 1
582
+ repeated ::Cucumber::Messages::GeneratedExpression, :generated_expressions, 2
583
+ optional ::Cucumber::Messages::PickleStepArgument, :pickle_step_argument, 3
584
+ end
585
+
586
+ class GeneratedExpression
587
+ optional :string, :text, 1
588
+ repeated :string, :parameter_type_names, 2
589
+ end
590
+
591
+ end
592
+
593
+ end
594
+
@@ -1,4 +1,4 @@
1
- require 'cucumber/messages_pb'
1
+ require 'cucumber/messages.pb'
2
2
  require 'cucumber/messages/binary_to_message_enumerator'
3
3
  require 'cucumber/messages/ndjson_to_message_enumerator'
4
4
  require 'cucumber/messages/protobuf_delimited'
@@ -6,7 +6,8 @@ module Cucumber
6
6
  def initialize(io)
7
7
  super() do |yielder|
8
8
  io.each_line do |json|
9
- yielder.yield(Cucumber::Messages::Envelope.decode_json(json))
9
+ m = Cucumber::Messages::Envelope.from_json(json)
10
+ yielder.yield(m)
10
11
  end
11
12
  end
12
13
  end
@@ -4,7 +4,8 @@ module Cucumber
4
4
  module Messages
5
5
  module WriteNdjson
6
6
  def write_ndjson_to(io)
7
- json = self.class.encode_json(self)
7
+ # https://github.com/ruby-protobuf/protobuf/pull/410
8
+ json = self.to_json(lower_camel_case: true)
8
9
  ob = JSON.parse(json)
9
10
  remove_empties(ob)
10
11
  io.puts(JSON.generate(ob))
@@ -13,7 +14,7 @@ module Cucumber
13
14
  def remove_empties(ob)
14
15
  if Hash === ob
15
16
  ob.each do |key, value|
16
- if value == []
17
+ if value == [] || value == '' || value == 0
17
18
  ob.delete(key)
18
19
  else
19
20
  remove_empties(value)
@@ -27,4 +28,4 @@ module Cucumber
27
28
  end
28
29
  end
29
30
  end
30
- end
31
+ end
@@ -4,10 +4,28 @@ module Cucumber
4
4
  module Messages
5
5
  describe Messages do
6
6
 
7
+ it "json-roundtrips messages with bytes fields" do
8
+ a1 = Attachment.new(binary: [1,2,3,4].pack('C*'))
9
+ expect(a1.binary.length).to eq(4)
10
+ a2 = Attachment.new(JSON.parse(a1.to_json))
11
+ expect(a2).to(eq(a1))
12
+ end
13
+
14
+ it "omits empty string fields in output" do
15
+ io = StringIO.new
16
+ message = Envelope.new(source: Source.new(data: ''))
17
+ message.write_ndjson_to(io)
18
+
19
+ io.rewind
20
+ json = io.read
21
+
22
+ expect(json).to eq("{\"source\":{}}\n")
23
+ end
24
+
7
25
  it "can be serialised over an ndjson stream" do
8
26
  outgoing_messages = [
9
27
  Envelope.new(source: Source.new(data: 'Feature: Hello')),
10
- Envelope.new(attachment: Attachment.new(data: 'some stack trace'))
28
+ Envelope.new(attachment: Attachment.new(binary: [1,2,3,4].pack('C*')))
11
29
  ]
12
30
 
13
31
  io = StringIO.new
@@ -7,7 +7,7 @@ module Cucumber
7
7
  it "can be serialised over a binary stream" do
8
8
  outgoing_messages = [
9
9
  Envelope.new(source: Source.new(data: 'Feature: Hello')),
10
- Envelope.new(attachment: Attachment.new(data: 'some stack trace'))
10
+ Envelope.new(attachment: Attachment.new(binary: "JALLA"))
11
11
  ]
12
12
 
13
13
  io = StringIO.new
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-messages
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.0
4
+ version: 9.0.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: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2020-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: google-protobuf
14
+ name: protobuf-cucumber
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
20
- - - "<="
19
+ version: '3.10'
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '3.8'
22
+ version: 3.10.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '3.2'
30
- - - "<="
29
+ version: '3.10'
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '3.8'
32
+ version: 3.10.4
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '2.2'
39
+ version: '2.3'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 2.2.0
42
+ version: 2.3.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '2.2'
49
+ version: '2.3'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 2.2.0
52
+ version: 2.3.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rake
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -118,6 +118,7 @@ extra_rdoc_files: []
118
118
  files:
119
119
  - LICENSE
120
120
  - README.md
121
+ - lib/cucumber/messages.pb.rb
121
122
  - lib/cucumber/messages.rb
122
123
  - lib/cucumber/messages/binary_to_message_enumerator.rb
123
124
  - lib/cucumber/messages/id_generator.rb
@@ -126,7 +127,6 @@ files:
126
127
  - lib/cucumber/messages/protobuf_ndjson.rb
127
128
  - lib/cucumber/messages/time_conversion.rb
128
129
  - lib/cucumber/messages/varint.rb
129
- - lib/cucumber/messages_pb.rb
130
130
  - spec/capture_warnings.rb
131
131
  - spec/coverage.rb
132
132
  - spec/cucumber/messages/id_generator_spec.rb
@@ -162,7 +162,7 @@ rubyforge_project:
162
162
  rubygems_version: 2.7.6.2
163
163
  signing_key:
164
164
  specification_version: 4
165
- summary: cucumber-messages-8.0.0
165
+ summary: cucumber-messages-9.0.1
166
166
  test_files:
167
167
  - spec/cucumber/messages/time_conversion_spec.rb
168
168
  - spec/cucumber/messages/ndjson_serialization_spec.rb
@@ -1,479 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: messages.proto
3
-
4
- require 'google/protobuf'
5
-
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "io.cucumber.messages.Timestamp" do
8
- optional :seconds, :int64, 1
9
- optional :nanos, :int32, 2
10
- end
11
- add_message "io.cucumber.messages.Duration" do
12
- optional :seconds, :int64, 1
13
- optional :nanos, :int32, 2
14
- end
15
- add_message "io.cucumber.messages.Envelope" do
16
- oneof :message do
17
- optional :source, :message, 1, "io.cucumber.messages.Source"
18
- optional :gherkin_document, :message, 2, "io.cucumber.messages.GherkinDocument"
19
- optional :pickle, :message, 3, "io.cucumber.messages.Pickle"
20
- optional :attachment, :message, 4, "io.cucumber.messages.Attachment"
21
- optional :test_case_started, :message, 5, "io.cucumber.messages.TestCaseStarted"
22
- optional :test_step_started, :message, 6, "io.cucumber.messages.TestStepStarted"
23
- optional :test_step_finished, :message, 7, "io.cucumber.messages.TestStepFinished"
24
- optional :test_case_finished, :message, 8, "io.cucumber.messages.TestCaseFinished"
25
- optional :pickle_accepted, :message, 9, "io.cucumber.messages.PickleAccepted"
26
- optional :pickle_rejected, :message, 10, "io.cucumber.messages.PickleRejected"
27
- optional :test_case_prepared, :message, 11, "io.cucumber.messages.TestCasePrepared"
28
- optional :test_run_started, :message, 12, "io.cucumber.messages.TestRunStarted"
29
- optional :test_run_finished, :message, 13, "io.cucumber.messages.TestRunFinished"
30
- optional :command_start, :message, 14, "io.cucumber.messages.CommandStart"
31
- optional :command_action_complete, :message, 15, "io.cucumber.messages.CommandActionComplete"
32
- optional :command_run_before_test_run_hooks, :message, 16, "io.cucumber.messages.CommandRunBeforeTestRunHooks"
33
- optional :command_initialize_test_case, :message, 17, "io.cucumber.messages.CommandInitializeTestCase"
34
- optional :command_run_before_test_case_hook, :message, 18, "io.cucumber.messages.CommandRunBeforeTestCaseHook"
35
- optional :command_run_test_step, :message, 19, "io.cucumber.messages.CommandRunTestStep"
36
- optional :command_run_after_test_case_hook, :message, 20, "io.cucumber.messages.CommandRunAfterTestCaseHook"
37
- optional :command_run_after_test_run_hooks, :message, 21, "io.cucumber.messages.CommandRunAfterTestRunHooks"
38
- optional :command_generate_snippet, :message, 22, "io.cucumber.messages.CommandGenerateSnippet"
39
- optional :command_error, :string, 23
40
- optional :test_case, :message, 24, "io.cucumber.messages.TestCase"
41
- optional :step_definition, :message, 25, "io.cucumber.messages.StepDefinition"
42
- optional :hook, :message, 26, "io.cucumber.messages.Hook"
43
- end
44
- end
45
- add_message "io.cucumber.messages.Location" do
46
- optional :line, :uint32, 1
47
- optional :column, :uint32, 2
48
- end
49
- add_message "io.cucumber.messages.SourceReference" do
50
- optional :uri, :string, 1
51
- optional :location, :message, 2, "io.cucumber.messages.Location"
52
- end
53
- add_message "io.cucumber.messages.Media" do
54
- optional :encoding, :enum, 1, "io.cucumber.messages.Media.Encoding"
55
- optional :content_type, :string, 2
56
- end
57
- add_enum "io.cucumber.messages.Media.Encoding" do
58
- value :BASE64, 0
59
- value :UTF8, 1
60
- end
61
- add_message "io.cucumber.messages.Source" do
62
- optional :uri, :string, 1
63
- optional :data, :string, 2
64
- optional :media, :message, 3, "io.cucumber.messages.Media"
65
- end
66
- add_message "io.cucumber.messages.GherkinDocument" do
67
- optional :uri, :string, 1
68
- optional :feature, :message, 2, "io.cucumber.messages.GherkinDocument.Feature"
69
- repeated :comments, :message, 3, "io.cucumber.messages.GherkinDocument.Comment"
70
- end
71
- add_message "io.cucumber.messages.GherkinDocument.Comment" do
72
- optional :location, :message, 1, "io.cucumber.messages.Location"
73
- optional :text, :string, 2
74
- end
75
- add_message "io.cucumber.messages.GherkinDocument.Feature" do
76
- optional :location, :message, 1, "io.cucumber.messages.Location"
77
- repeated :tags, :message, 2, "io.cucumber.messages.GherkinDocument.Feature.Tag"
78
- optional :language, :string, 3
79
- optional :keyword, :string, 4
80
- optional :name, :string, 5
81
- optional :description, :string, 6
82
- repeated :children, :message, 7, "io.cucumber.messages.GherkinDocument.Feature.FeatureChild"
83
- end
84
- add_message "io.cucumber.messages.GherkinDocument.Feature.Tag" do
85
- optional :location, :message, 1, "io.cucumber.messages.Location"
86
- optional :name, :string, 2
87
- optional :id, :string, 3
88
- end
89
- add_message "io.cucumber.messages.GherkinDocument.Feature.FeatureChild" do
90
- oneof :value do
91
- optional :rule, :message, 1, "io.cucumber.messages.GherkinDocument.Feature.FeatureChild.Rule"
92
- optional :background, :message, 2, "io.cucumber.messages.GherkinDocument.Feature.Background"
93
- optional :scenario, :message, 3, "io.cucumber.messages.GherkinDocument.Feature.Scenario"
94
- end
95
- end
96
- add_message "io.cucumber.messages.GherkinDocument.Feature.FeatureChild.Rule" do
97
- optional :location, :message, 1, "io.cucumber.messages.Location"
98
- optional :keyword, :string, 2
99
- optional :name, :string, 3
100
- optional :description, :string, 4
101
- repeated :children, :message, 5, "io.cucumber.messages.GherkinDocument.Feature.FeatureChild.RuleChild"
102
- end
103
- add_message "io.cucumber.messages.GherkinDocument.Feature.FeatureChild.RuleChild" do
104
- oneof :value do
105
- optional :background, :message, 1, "io.cucumber.messages.GherkinDocument.Feature.Background"
106
- optional :scenario, :message, 2, "io.cucumber.messages.GherkinDocument.Feature.Scenario"
107
- end
108
- end
109
- add_message "io.cucumber.messages.GherkinDocument.Feature.Background" do
110
- optional :location, :message, 1, "io.cucumber.messages.Location"
111
- optional :keyword, :string, 2
112
- optional :name, :string, 3
113
- optional :description, :string, 4
114
- repeated :steps, :message, 5, "io.cucumber.messages.GherkinDocument.Feature.Step"
115
- end
116
- add_message "io.cucumber.messages.GherkinDocument.Feature.Scenario" do
117
- optional :location, :message, 1, "io.cucumber.messages.Location"
118
- repeated :tags, :message, 2, "io.cucumber.messages.GherkinDocument.Feature.Tag"
119
- optional :keyword, :string, 3
120
- optional :name, :string, 4
121
- optional :description, :string, 5
122
- repeated :steps, :message, 6, "io.cucumber.messages.GherkinDocument.Feature.Step"
123
- repeated :examples, :message, 7, "io.cucumber.messages.GherkinDocument.Feature.Scenario.Examples"
124
- optional :id, :string, 8
125
- end
126
- add_message "io.cucumber.messages.GherkinDocument.Feature.Scenario.Examples" do
127
- optional :location, :message, 1, "io.cucumber.messages.Location"
128
- repeated :tags, :message, 2, "io.cucumber.messages.GherkinDocument.Feature.Tag"
129
- optional :keyword, :string, 3
130
- optional :name, :string, 4
131
- optional :description, :string, 5
132
- optional :table_header, :message, 6, "io.cucumber.messages.GherkinDocument.Feature.TableRow"
133
- repeated :table_body, :message, 7, "io.cucumber.messages.GherkinDocument.Feature.TableRow"
134
- end
135
- add_message "io.cucumber.messages.GherkinDocument.Feature.TableRow" do
136
- optional :location, :message, 1, "io.cucumber.messages.Location"
137
- repeated :cells, :message, 2, "io.cucumber.messages.GherkinDocument.Feature.TableRow.TableCell"
138
- optional :id, :string, 3
139
- end
140
- add_message "io.cucumber.messages.GherkinDocument.Feature.TableRow.TableCell" do
141
- optional :location, :message, 1, "io.cucumber.messages.Location"
142
- optional :value, :string, 2
143
- end
144
- add_message "io.cucumber.messages.GherkinDocument.Feature.Step" do
145
- optional :location, :message, 1, "io.cucumber.messages.Location"
146
- optional :keyword, :string, 2
147
- optional :text, :string, 3
148
- optional :id, :string, 7
149
- oneof :argument do
150
- optional :doc_string, :message, 5, "io.cucumber.messages.GherkinDocument.Feature.Step.DocString"
151
- optional :data_table, :message, 6, "io.cucumber.messages.GherkinDocument.Feature.Step.DataTable"
152
- end
153
- end
154
- add_message "io.cucumber.messages.GherkinDocument.Feature.Step.DataTable" do
155
- optional :location, :message, 1, "io.cucumber.messages.Location"
156
- repeated :rows, :message, 2, "io.cucumber.messages.GherkinDocument.Feature.TableRow"
157
- end
158
- add_message "io.cucumber.messages.GherkinDocument.Feature.Step.DocString" do
159
- optional :location, :message, 1, "io.cucumber.messages.Location"
160
- optional :content_type, :string, 2
161
- optional :content, :string, 3
162
- optional :delimiter, :string, 4
163
- end
164
- add_message "io.cucumber.messages.Attachment" do
165
- optional :source, :message, 1, "io.cucumber.messages.SourceReference"
166
- optional :data, :string, 2
167
- optional :media, :message, 3, "io.cucumber.messages.Media"
168
- optional :test_step_id, :string, 4
169
- optional :test_case_started_id, :string, 5
170
- end
171
- add_message "io.cucumber.messages.Pickle" do
172
- optional :id, :string, 1
173
- optional :uri, :string, 2
174
- optional :name, :string, 3
175
- optional :language, :string, 4
176
- repeated :steps, :message, 5, "io.cucumber.messages.Pickle.PickleStep"
177
- repeated :tags, :message, 6, "io.cucumber.messages.Pickle.PickleTag"
178
- repeated :ast_node_ids, :string, 7
179
- end
180
- add_message "io.cucumber.messages.Pickle.PickleTag" do
181
- optional :name, :string, 1
182
- optional :ast_node_id, :string, 2
183
- end
184
- add_message "io.cucumber.messages.Pickle.PickleStep" do
185
- optional :text, :string, 1
186
- optional :argument, :message, 2, "io.cucumber.messages.PickleStepArgument"
187
- optional :id, :string, 3
188
- repeated :ast_node_ids, :string, 4
189
- end
190
- add_message "io.cucumber.messages.PickleStepArgument" do
191
- oneof :message do
192
- optional :doc_string, :message, 1, "io.cucumber.messages.PickleStepArgument.PickleDocString"
193
- optional :data_table, :message, 2, "io.cucumber.messages.PickleStepArgument.PickleTable"
194
- end
195
- end
196
- add_message "io.cucumber.messages.PickleStepArgument.PickleDocString" do
197
- optional :content_type, :string, 1
198
- optional :content, :string, 2
199
- end
200
- add_message "io.cucumber.messages.PickleStepArgument.PickleTable" do
201
- repeated :rows, :message, 1, "io.cucumber.messages.PickleStepArgument.PickleTable.PickleTableRow"
202
- end
203
- add_message "io.cucumber.messages.PickleStepArgument.PickleTable.PickleTableRow" do
204
- repeated :cells, :message, 1, "io.cucumber.messages.PickleStepArgument.PickleTable.PickleTableRow.PickleTableCell"
205
- end
206
- add_message "io.cucumber.messages.PickleStepArgument.PickleTable.PickleTableRow.PickleTableCell" do
207
- optional :value, :string, 1
208
- end
209
- add_message "io.cucumber.messages.TestCase" do
210
- optional :id, :string, 1
211
- optional :pickle_id, :string, 2
212
- repeated :test_steps, :message, 3, "io.cucumber.messages.TestCase.TestStep"
213
- end
214
- add_message "io.cucumber.messages.TestCase.TestStep" do
215
- optional :id, :string, 1
216
- optional :pickle_step_id, :string, 2
217
- repeated :step_definition_ids, :string, 3
218
- repeated :step_match_arguments, :message, 4, "io.cucumber.messages.StepMatchArgument"
219
- optional :hookId, :string, 5
220
- end
221
- add_message "io.cucumber.messages.PickleAccepted" do
222
- optional :pickle_id, :string, 1
223
- end
224
- add_message "io.cucumber.messages.PickleRejected" do
225
- optional :pickle_id, :string, 2
226
- end
227
- add_message "io.cucumber.messages.TestRunStarted" do
228
- optional :timestamp, :message, 1, "io.cucumber.messages.Timestamp"
229
- end
230
- add_message "io.cucumber.messages.TestCasePreparedStep" do
231
- optional :source_location, :message, 1, "io.cucumber.messages.SourceReference"
232
- optional :action_location, :message, 2, "io.cucumber.messages.SourceReference"
233
- end
234
- add_message "io.cucumber.messages.TestCasePrepared" do
235
- optional :pickle_id, :string, 1
236
- repeated :steps, :message, 2, "io.cucumber.messages.TestCasePreparedStep"
237
- end
238
- add_message "io.cucumber.messages.TestCaseStarted" do
239
- optional :timestamp, :message, 1, "io.cucumber.messages.Timestamp"
240
- optional :platform, :message, 2, "io.cucumber.messages.TestCaseStarted.Platform"
241
- optional :attempt, :uint32, 3
242
- optional :test_case_id, :string, 4
243
- optional :id, :string, 5
244
- end
245
- add_message "io.cucumber.messages.TestCaseStarted.Platform" do
246
- optional :implementation, :string, 1
247
- optional :version, :string, 2
248
- optional :os, :string, 3
249
- optional :cpu, :string, 4
250
- end
251
- add_message "io.cucumber.messages.TestCaseFinished" do
252
- optional :timestamp, :message, 1, "io.cucumber.messages.Timestamp"
253
- optional :test_result, :message, 2, "io.cucumber.messages.TestResult"
254
- optional :test_case_started_id, :string, 3
255
- end
256
- add_message "io.cucumber.messages.TestStepStarted" do
257
- optional :timestamp, :message, 1, "io.cucumber.messages.Timestamp"
258
- optional :test_step_id, :string, 2
259
- optional :test_case_started_id, :string, 3
260
- end
261
- add_message "io.cucumber.messages.TestStepFinished" do
262
- optional :test_result, :message, 1, "io.cucumber.messages.TestResult"
263
- optional :timestamp, :message, 2, "io.cucumber.messages.Timestamp"
264
- optional :test_step_id, :string, 3
265
- optional :test_case_started_id, :string, 4
266
- end
267
- add_message "io.cucumber.messages.TestResult" do
268
- optional :status, :enum, 1, "io.cucumber.messages.TestResult.Status"
269
- optional :message, :string, 2
270
- optional :duration, :message, 3, "io.cucumber.messages.Duration"
271
- optional :will_be_retried, :bool, 4
272
- end
273
- add_enum "io.cucumber.messages.TestResult.Status" do
274
- value :UNKNOWN, 0
275
- value :PASSED, 1
276
- value :SKIPPED, 2
277
- value :PENDING, 3
278
- value :UNDEFINED, 4
279
- value :AMBIGUOUS, 5
280
- value :FAILED, 6
281
- end
282
- add_message "io.cucumber.messages.TestRunFinished" do
283
- optional :success, :bool, 1
284
- optional :timestamp, :message, 2, "io.cucumber.messages.Timestamp"
285
- end
286
- add_message "io.cucumber.messages.CommandStart" do
287
- optional :base_directory, :string, 2
288
- optional :sources_config, :message, 3, "io.cucumber.messages.SourcesConfig"
289
- optional :runtime_config, :message, 4, "io.cucumber.messages.RuntimeConfig"
290
- optional :support_code_config, :message, 5, "io.cucumber.messages.SupportCodeConfig"
291
- end
292
- add_message "io.cucumber.messages.SourcesConfig" do
293
- repeated :absolute_paths, :string, 1
294
- optional :language, :string, 2
295
- optional :filters, :message, 3, "io.cucumber.messages.SourcesFilterConfig"
296
- optional :order, :message, 4, "io.cucumber.messages.SourcesOrder"
297
- end
298
- add_message "io.cucumber.messages.SourcesFilterConfig" do
299
- optional :tag_expression, :string, 1
300
- repeated :name_regular_expressions, :string, 2
301
- repeated :uri_to_lines_mapping, :message, 3, "io.cucumber.messages.UriToLinesMapping"
302
- end
303
- add_message "io.cucumber.messages.UriToLinesMapping" do
304
- optional :absolute_path, :string, 1
305
- repeated :lines, :uint64, 2
306
- end
307
- add_message "io.cucumber.messages.SourcesOrder" do
308
- optional :type, :enum, 1, "io.cucumber.messages.SourcesOrderType"
309
- optional :seed, :uint64, 2
310
- end
311
- add_message "io.cucumber.messages.RuntimeConfig" do
312
- optional :is_fail_fast, :bool, 1
313
- optional :is_dry_run, :bool, 2
314
- optional :is_strict, :bool, 3
315
- optional :max_parallel, :uint64, 4
316
- end
317
- add_message "io.cucumber.messages.SupportCodeConfig" do
318
- repeated :before_test_case_hooks, :message, 1, "io.cucumber.messages.Hook"
319
- repeated :after_test_case_hooks, :message, 2, "io.cucumber.messages.Hook"
320
- repeated :step_definitions, :message, 3, "io.cucumber.messages.StepDefinition"
321
- repeated :parameter_types, :message, 4, "io.cucumber.messages.ParameterType"
322
- end
323
- add_message "io.cucumber.messages.Hook" do
324
- optional :id, :string, 1
325
- optional :tag_expression, :string, 2
326
- optional :source_reference, :message, 3, "io.cucumber.messages.SourceReference"
327
- end
328
- add_message "io.cucumber.messages.StepDefinition" do
329
- optional :id, :string, 1
330
- optional :pattern, :message, 2, "io.cucumber.messages.StepDefinitionPattern"
331
- optional :source_reference, :message, 3, "io.cucumber.messages.SourceReference"
332
- end
333
- add_message "io.cucumber.messages.StepDefinitionPattern" do
334
- optional :source, :string, 1
335
- optional :type, :enum, 2, "io.cucumber.messages.StepDefinitionPatternType"
336
- end
337
- add_message "io.cucumber.messages.ParameterType" do
338
- optional :name, :string, 1
339
- repeated :regular_expressions, :string, 2
340
- optional :prefer_for_regular_expression_match, :bool, 3
341
- optional :use_for_snippets, :bool, 4
342
- end
343
- add_message "io.cucumber.messages.CommandActionComplete" do
344
- optional :completed_id, :string, 1
345
- oneof :result do
346
- optional :test_result, :message, 2, "io.cucumber.messages.TestResult"
347
- optional :snippet, :string, 3
348
- end
349
- end
350
- add_message "io.cucumber.messages.CommandRunBeforeTestRunHooks" do
351
- optional :action_id, :string, 1
352
- end
353
- add_message "io.cucumber.messages.CommandRunAfterTestRunHooks" do
354
- optional :action_id, :string, 1
355
- end
356
- add_message "io.cucumber.messages.CommandInitializeTestCase" do
357
- optional :action_id, :string, 1
358
- optional :pickle, :message, 2, "io.cucumber.messages.Pickle"
359
- end
360
- add_message "io.cucumber.messages.CommandRunBeforeTestCaseHook" do
361
- optional :action_id, :string, 1
362
- optional :hook_id, :string, 2
363
- optional :test_case_id, :string, 3
364
- end
365
- add_message "io.cucumber.messages.CommandRunAfterTestCaseHook" do
366
- optional :action_id, :string, 1
367
- optional :hook_id, :string, 2
368
- optional :test_case_id, :string, 3
369
- end
370
- add_message "io.cucumber.messages.CommandRunTestStep" do
371
- optional :action_id, :string, 1
372
- optional :step_definition_id, :string, 2
373
- repeated :step_match_arguments, :message, 3, "io.cucumber.messages.StepMatchArgument"
374
- optional :pickle_step_argument, :message, 4, "io.cucumber.messages.PickleStepArgument"
375
- optional :test_case_id, :string, 5
376
- end
377
- add_message "io.cucumber.messages.StepMatchArgument" do
378
- optional :parameter_type_name, :string, 1
379
- optional :group, :message, 2, "io.cucumber.messages.StepMatchArgument.Group"
380
- end
381
- add_message "io.cucumber.messages.StepMatchArgument.Group" do
382
- optional :start, :uint32, 1
383
- optional :value, :string, 2
384
- repeated :children, :message, 3, "io.cucumber.messages.StepMatchArgument.Group"
385
- end
386
- add_message "io.cucumber.messages.CommandGenerateSnippet" do
387
- optional :action_id, :string, 1
388
- repeated :generated_expressions, :message, 2, "io.cucumber.messages.GeneratedExpression"
389
- optional :pickle_step_argument, :message, 3, "io.cucumber.messages.PickleStepArgument"
390
- end
391
- add_message "io.cucumber.messages.GeneratedExpression" do
392
- optional :text, :string, 1
393
- repeated :parameter_type_names, :string, 2
394
- end
395
- add_enum "io.cucumber.messages.SourcesOrderType" do
396
- value :ORDER_OF_DEFINITION, 0
397
- value :RANDOM, 1
398
- end
399
- add_enum "io.cucumber.messages.StepDefinitionPatternType" do
400
- value :CUCUMBER_EXPRESSION, 0
401
- value :REGULAR_EXPRESSION, 1
402
- end
403
- end
404
-
405
- module Cucumber
406
- module Messages
407
- Timestamp = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Timestamp").msgclass
408
- Duration = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Duration").msgclass
409
- Envelope = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Envelope").msgclass
410
- Location = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Location").msgclass
411
- SourceReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.SourceReference").msgclass
412
- Media = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Media").msgclass
413
- Media::Encoding = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Media.Encoding").enummodule
414
- Source = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Source").msgclass
415
- GherkinDocument = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument").msgclass
416
- GherkinDocument::Comment = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Comment").msgclass
417
- GherkinDocument::Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature").msgclass
418
- GherkinDocument::Feature::Tag = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.Tag").msgclass
419
- GherkinDocument::Feature::FeatureChild = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.FeatureChild").msgclass
420
- GherkinDocument::Feature::FeatureChild::Rule = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.FeatureChild.Rule").msgclass
421
- GherkinDocument::Feature::FeatureChild::RuleChild = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.FeatureChild.RuleChild").msgclass
422
- GherkinDocument::Feature::Background = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.Background").msgclass
423
- GherkinDocument::Feature::Scenario = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.Scenario").msgclass
424
- GherkinDocument::Feature::Scenario::Examples = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.Scenario.Examples").msgclass
425
- GherkinDocument::Feature::TableRow = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.TableRow").msgclass
426
- GherkinDocument::Feature::TableRow::TableCell = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.TableRow.TableCell").msgclass
427
- GherkinDocument::Feature::Step = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.Step").msgclass
428
- GherkinDocument::Feature::Step::DataTable = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.Step.DataTable").msgclass
429
- GherkinDocument::Feature::Step::DocString = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GherkinDocument.Feature.Step.DocString").msgclass
430
- Attachment = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Attachment").msgclass
431
- Pickle = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Pickle").msgclass
432
- Pickle::PickleTag = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Pickle.PickleTag").msgclass
433
- Pickle::PickleStep = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Pickle.PickleStep").msgclass
434
- PickleStepArgument = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.PickleStepArgument").msgclass
435
- PickleStepArgument::PickleDocString = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.PickleStepArgument.PickleDocString").msgclass
436
- PickleStepArgument::PickleTable = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.PickleStepArgument.PickleTable").msgclass
437
- PickleStepArgument::PickleTable::PickleTableRow = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.PickleStepArgument.PickleTable.PickleTableRow").msgclass
438
- PickleStepArgument::PickleTable::PickleTableRow::PickleTableCell = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.PickleStepArgument.PickleTable.PickleTableRow.PickleTableCell").msgclass
439
- TestCase = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestCase").msgclass
440
- TestCase::TestStep = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestCase.TestStep").msgclass
441
- PickleAccepted = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.PickleAccepted").msgclass
442
- PickleRejected = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.PickleRejected").msgclass
443
- TestRunStarted = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestRunStarted").msgclass
444
- TestCasePreparedStep = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestCasePreparedStep").msgclass
445
- TestCasePrepared = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestCasePrepared").msgclass
446
- TestCaseStarted = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestCaseStarted").msgclass
447
- TestCaseStarted::Platform = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestCaseStarted.Platform").msgclass
448
- TestCaseFinished = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestCaseFinished").msgclass
449
- TestStepStarted = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestStepStarted").msgclass
450
- TestStepFinished = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestStepFinished").msgclass
451
- TestResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestResult").msgclass
452
- TestResult::Status = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestResult.Status").enummodule
453
- TestRunFinished = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.TestRunFinished").msgclass
454
- CommandStart = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandStart").msgclass
455
- SourcesConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.SourcesConfig").msgclass
456
- SourcesFilterConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.SourcesFilterConfig").msgclass
457
- UriToLinesMapping = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.UriToLinesMapping").msgclass
458
- SourcesOrder = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.SourcesOrder").msgclass
459
- RuntimeConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.RuntimeConfig").msgclass
460
- SupportCodeConfig = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.SupportCodeConfig").msgclass
461
- Hook = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.Hook").msgclass
462
- StepDefinition = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.StepDefinition").msgclass
463
- StepDefinitionPattern = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.StepDefinitionPattern").msgclass
464
- ParameterType = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.ParameterType").msgclass
465
- CommandActionComplete = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandActionComplete").msgclass
466
- CommandRunBeforeTestRunHooks = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandRunBeforeTestRunHooks").msgclass
467
- CommandRunAfterTestRunHooks = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandRunAfterTestRunHooks").msgclass
468
- CommandInitializeTestCase = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandInitializeTestCase").msgclass
469
- CommandRunBeforeTestCaseHook = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandRunBeforeTestCaseHook").msgclass
470
- CommandRunAfterTestCaseHook = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandRunAfterTestCaseHook").msgclass
471
- CommandRunTestStep = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandRunTestStep").msgclass
472
- StepMatchArgument = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.StepMatchArgument").msgclass
473
- StepMatchArgument::Group = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.StepMatchArgument.Group").msgclass
474
- CommandGenerateSnippet = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.CommandGenerateSnippet").msgclass
475
- GeneratedExpression = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.GeneratedExpression").msgclass
476
- SourcesOrderType = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.SourcesOrderType").enummodule
477
- StepDefinitionPatternType = Google::Protobuf::DescriptorPool.generated_pool.lookup("io.cucumber.messages.StepDefinitionPatternType").enummodule
478
- end
479
- end