cucumber-messages 19.1.4 → 21.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/VERSION +1 -1
- data/lib/cucumber/messages.deserializers.rb +24 -1
- data/lib/cucumber/messages.dtos.rb +111 -63
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c69e3b13529cf0bf35e26e7c08b6edd544368fa2958c7565fc93760a512cce6a
|
4
|
+
data.tar.gz: 46d25f56f43f92aa3df93dd3d6f6809aedf59c404797dcb86fb07a4b0a347d83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d21bb9cde318b627dad651e94b78c832dc330d23039f37928e269d5cb28716bb92a0f0ebf09d708f7583de98c70f508951059966cb2bfe8cac968403e1abcced
|
7
|
+
data.tar.gz: da96eb9001e92baee65f450cdabe648e399f1bb5d406fb68650f12b0a9a00e68f5b21b12c13d6b01de12544d0984895fed7f2c2d10178266e48b93ee5ef457c7
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
21.0.0
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'cucumber/messages.dtos'
|
2
2
|
require 'json'
|
3
3
|
|
4
|
-
# The code was auto-generated by {this script}[https://github.com/cucumber/
|
4
|
+
# The code was auto-generated by {this script}[https://github.com/cucumber/messages/blob/main/jsonschema/scripts/codegen.rb]
|
5
5
|
#
|
6
6
|
|
7
7
|
module Cucumber
|
@@ -88,6 +88,26 @@ module Cucumber
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
+
class Exception
|
92
|
+
|
93
|
+
##
|
94
|
+
# Returns a new Exception from the given hash.
|
95
|
+
# If the hash keys are camelCased, they are properly assigned to the
|
96
|
+
# corresponding snake_cased attributes.
|
97
|
+
#
|
98
|
+
# Cucumber::Messages::Exception.from_h(some_hash) # => #<Cucumber::Messages::Exception:0x... ...>
|
99
|
+
#
|
100
|
+
|
101
|
+
def self.from_h(hash)
|
102
|
+
return nil if hash.nil?
|
103
|
+
|
104
|
+
self.new(
|
105
|
+
type: hash[:type],
|
106
|
+
message: hash[:message],
|
107
|
+
)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
91
111
|
class GherkinDocument
|
92
112
|
|
93
113
|
##
|
@@ -1031,6 +1051,7 @@ module Cucumber
|
|
1031
1051
|
attempt: hash[:attempt],
|
1032
1052
|
id: hash[:id],
|
1033
1053
|
test_case_id: hash[:testCaseId],
|
1054
|
+
worker_id: hash[:workerId],
|
1034
1055
|
timestamp: Timestamp.from_h(hash[:timestamp]),
|
1035
1056
|
)
|
1036
1057
|
end
|
@@ -1053,6 +1074,7 @@ module Cucumber
|
|
1053
1074
|
message: hash[:message],
|
1054
1075
|
success: hash[:success],
|
1055
1076
|
timestamp: Timestamp.from_h(hash[:timestamp]),
|
1077
|
+
exception: Exception.from_h(hash[:exception]),
|
1056
1078
|
)
|
1057
1079
|
end
|
1058
1080
|
end
|
@@ -1115,6 +1137,7 @@ module Cucumber
|
|
1115
1137
|
duration: Duration.from_h(hash[:duration]),
|
1116
1138
|
message: hash[:message],
|
1117
1139
|
status: hash[:status],
|
1140
|
+
exception: Exception.from_h(hash[:exception]),
|
1118
1141
|
)
|
1119
1142
|
end
|
1120
1143
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'cucumber/messages/message'
|
2
2
|
|
3
|
-
# The code was auto-generated by {this script}[https://github.com/cucumber/
|
3
|
+
# The code was auto-generated by {this script}[https://github.com/cucumber/messages/blob/main/jsonschema/scripts/codegen.rb]
|
4
4
|
#
|
5
5
|
|
6
6
|
module Cucumber
|
@@ -8,7 +8,7 @@ module Cucumber
|
|
8
8
|
|
9
9
|
|
10
10
|
##
|
11
|
-
# Represents the Attachment message in Cucumber's {message protocol}[https://github.com/cucumber/
|
11
|
+
# Represents the Attachment message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
12
12
|
#
|
13
13
|
# //// Attachments (parse errors, execution errors, screenshots, links...)
|
14
14
|
#
|
@@ -107,7 +107,7 @@ module Cucumber
|
|
107
107
|
|
108
108
|
|
109
109
|
##
|
110
|
-
# Represents the Duration message in Cucumber's {message protocol}[https://github.com/cucumber/
|
110
|
+
# Represents the Duration message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
111
111
|
#
|
112
112
|
# The structure is pretty close of the Timestamp one. For clarity, a second type
|
113
113
|
# of message is used.
|
@@ -136,7 +136,7 @@ module Cucumber
|
|
136
136
|
|
137
137
|
|
138
138
|
##
|
139
|
-
# Represents the Envelope message in Cucumber's {message protocol}[https://github.com/cucumber/
|
139
|
+
# Represents the Envelope message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
140
140
|
#
|
141
141
|
# When removing a field, replace it with reserved, rather than deleting the line.
|
142
142
|
# When adding a field, add it to the end and increment the number by one.
|
@@ -224,7 +224,35 @@ module Cucumber
|
|
224
224
|
|
225
225
|
|
226
226
|
##
|
227
|
-
# Represents the
|
227
|
+
# Represents the Exception message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
228
|
+
#
|
229
|
+
# A simplified representation of an exception
|
230
|
+
#
|
231
|
+
|
232
|
+
class Exception < ::Cucumber::Messages::Message
|
233
|
+
|
234
|
+
##
|
235
|
+
# The type of the exception that caused this result. E.g. "Error" or "org.opentest4j.AssertionFailedError"
|
236
|
+
|
237
|
+
attr_reader :type
|
238
|
+
|
239
|
+
##
|
240
|
+
# The message of exception that caused this result. E.g. expected: <"a"> but was: <"b">
|
241
|
+
|
242
|
+
attr_reader :message
|
243
|
+
|
244
|
+
def initialize(
|
245
|
+
type: '',
|
246
|
+
message: nil
|
247
|
+
)
|
248
|
+
@type = type
|
249
|
+
@message = message
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
|
254
|
+
##
|
255
|
+
# Represents the GherkinDocument message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
228
256
|
#
|
229
257
|
# *
|
230
258
|
# The [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) of a Gherkin document.
|
@@ -264,7 +292,7 @@ module Cucumber
|
|
264
292
|
|
265
293
|
|
266
294
|
##
|
267
|
-
# Represents the Background message in Cucumber's {message protocol}[https://github.com/cucumber/
|
295
|
+
# Represents the Background message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
268
296
|
#
|
269
297
|
|
270
298
|
#
|
@@ -305,7 +333,7 @@ module Cucumber
|
|
305
333
|
|
306
334
|
|
307
335
|
##
|
308
|
-
# Represents the Comment message in Cucumber's {message protocol}[https://github.com/cucumber/
|
336
|
+
# Represents the Comment message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
309
337
|
#
|
310
338
|
# *
|
311
339
|
# A comment in a Gherkin document
|
@@ -334,7 +362,7 @@ module Cucumber
|
|
334
362
|
|
335
363
|
|
336
364
|
##
|
337
|
-
# Represents the DataTable message in Cucumber's {message protocol}[https://github.com/cucumber/
|
365
|
+
# Represents the DataTable message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
338
366
|
#
|
339
367
|
|
340
368
|
#
|
@@ -356,7 +384,7 @@ module Cucumber
|
|
356
384
|
|
357
385
|
|
358
386
|
##
|
359
|
-
# Represents the DocString message in Cucumber's {message protocol}[https://github.com/cucumber/
|
387
|
+
# Represents the DocString message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
360
388
|
#
|
361
389
|
|
362
390
|
#
|
@@ -386,7 +414,7 @@ module Cucumber
|
|
386
414
|
|
387
415
|
|
388
416
|
##
|
389
|
-
# Represents the Examples message in Cucumber's {message protocol}[https://github.com/cucumber/
|
417
|
+
# Represents the Examples message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
390
418
|
#
|
391
419
|
|
392
420
|
#
|
@@ -435,7 +463,7 @@ module Cucumber
|
|
435
463
|
|
436
464
|
|
437
465
|
##
|
438
|
-
# Represents the Feature message in Cucumber's {message protocol}[https://github.com/cucumber/
|
466
|
+
# Represents the Feature message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
439
467
|
#
|
440
468
|
|
441
469
|
#
|
@@ -498,7 +526,7 @@ module Cucumber
|
|
498
526
|
|
499
527
|
|
500
528
|
##
|
501
|
-
# Represents the FeatureChild message in Cucumber's {message protocol}[https://github.com/cucumber/
|
529
|
+
# Represents the FeatureChild message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
502
530
|
#
|
503
531
|
# *
|
504
532
|
# A child node of a `Feature` node
|
@@ -525,7 +553,7 @@ module Cucumber
|
|
525
553
|
|
526
554
|
|
527
555
|
##
|
528
|
-
# Represents the Rule message in Cucumber's {message protocol}[https://github.com/cucumber/
|
556
|
+
# Represents the Rule message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
529
557
|
#
|
530
558
|
|
531
559
|
#
|
@@ -573,7 +601,7 @@ module Cucumber
|
|
573
601
|
|
574
602
|
|
575
603
|
##
|
576
|
-
# Represents the RuleChild message in Cucumber's {message protocol}[https://github.com/cucumber/
|
604
|
+
# Represents the RuleChild message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
577
605
|
#
|
578
606
|
# *
|
579
607
|
# A child node of a `Rule` node
|
@@ -596,7 +624,7 @@ module Cucumber
|
|
596
624
|
|
597
625
|
|
598
626
|
##
|
599
|
-
# Represents the Scenario message in Cucumber's {message protocol}[https://github.com/cucumber/
|
627
|
+
# Represents the Scenario message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
600
628
|
#
|
601
629
|
|
602
630
|
#
|
@@ -645,7 +673,7 @@ module Cucumber
|
|
645
673
|
|
646
674
|
|
647
675
|
##
|
648
|
-
# Represents the Step message in Cucumber's {message protocol}[https://github.com/cucumber/
|
676
|
+
# Represents the Step message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
649
677
|
#
|
650
678
|
# A step
|
651
679
|
#
|
@@ -699,7 +727,7 @@ module Cucumber
|
|
699
727
|
|
700
728
|
|
701
729
|
##
|
702
|
-
# Represents the TableCell message in Cucumber's {message protocol}[https://github.com/cucumber/
|
730
|
+
# Represents the TableCell message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
703
731
|
#
|
704
732
|
# A cell in a `TableRow`
|
705
733
|
#
|
@@ -727,7 +755,7 @@ module Cucumber
|
|
727
755
|
|
728
756
|
|
729
757
|
##
|
730
|
-
# Represents the TableRow message in Cucumber's {message protocol}[https://github.com/cucumber/
|
758
|
+
# Represents the TableRow message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
731
759
|
#
|
732
760
|
# A row in a table
|
733
761
|
#
|
@@ -759,7 +787,7 @@ module Cucumber
|
|
759
787
|
|
760
788
|
|
761
789
|
##
|
762
|
-
# Represents the Tag message in Cucumber's {message protocol}[https://github.com/cucumber/
|
790
|
+
# Represents the Tag message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
763
791
|
#
|
764
792
|
# *
|
765
793
|
# A tag
|
@@ -795,7 +823,7 @@ module Cucumber
|
|
795
823
|
|
796
824
|
|
797
825
|
##
|
798
|
-
# Represents the Hook message in Cucumber's {message protocol}[https://github.com/cucumber/
|
826
|
+
# Represents the Hook message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
799
827
|
#
|
800
828
|
|
801
829
|
#
|
@@ -825,7 +853,7 @@ module Cucumber
|
|
825
853
|
|
826
854
|
|
827
855
|
##
|
828
|
-
# Represents the Location message in Cucumber's {message protocol}[https://github.com/cucumber/
|
856
|
+
# Represents the Location message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
829
857
|
#
|
830
858
|
# *
|
831
859
|
# Points to a line and a column in a text file
|
@@ -848,7 +876,7 @@ module Cucumber
|
|
848
876
|
|
849
877
|
|
850
878
|
##
|
851
|
-
# Represents the Meta message in Cucumber's {message protocol}[https://github.com/cucumber/
|
879
|
+
# Represents the Meta message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
852
880
|
#
|
853
881
|
# *
|
854
882
|
# This message contains meta information about the environment. Consumers can use
|
@@ -904,7 +932,7 @@ module Cucumber
|
|
904
932
|
|
905
933
|
|
906
934
|
##
|
907
|
-
# Represents the Ci message in Cucumber's {message protocol}[https://github.com/cucumber/
|
935
|
+
# Represents the Ci message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
908
936
|
#
|
909
937
|
# CI environment
|
910
938
|
#
|
@@ -943,7 +971,7 @@ module Cucumber
|
|
943
971
|
|
944
972
|
|
945
973
|
##
|
946
|
-
# Represents the Git message in Cucumber's {message protocol}[https://github.com/cucumber/
|
974
|
+
# Represents the Git message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
947
975
|
#
|
948
976
|
# Information about Git, provided by the Build/CI server as environment
|
949
977
|
# variables.
|
@@ -974,7 +1002,7 @@ module Cucumber
|
|
974
1002
|
|
975
1003
|
|
976
1004
|
##
|
977
|
-
# Represents the Product message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1005
|
+
# Represents the Product message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
978
1006
|
#
|
979
1007
|
# Used to describe various properties of Meta
|
980
1008
|
#
|
@@ -1002,7 +1030,7 @@ module Cucumber
|
|
1002
1030
|
|
1003
1031
|
|
1004
1032
|
##
|
1005
|
-
# Represents the ParameterType message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1033
|
+
# Represents the ParameterType message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1006
1034
|
#
|
1007
1035
|
|
1008
1036
|
#
|
@@ -1039,7 +1067,7 @@ module Cucumber
|
|
1039
1067
|
|
1040
1068
|
|
1041
1069
|
##
|
1042
|
-
# Represents the ParseError message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1070
|
+
# Represents the ParseError message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1043
1071
|
#
|
1044
1072
|
|
1045
1073
|
#
|
@@ -1061,7 +1089,7 @@ module Cucumber
|
|
1061
1089
|
|
1062
1090
|
|
1063
1091
|
##
|
1064
|
-
# Represents the Pickle message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1092
|
+
# Represents the Pickle message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1065
1093
|
#
|
1066
1094
|
# //// Pickles
|
1067
1095
|
#
|
@@ -1142,7 +1170,7 @@ module Cucumber
|
|
1142
1170
|
|
1143
1171
|
|
1144
1172
|
##
|
1145
|
-
# Represents the PickleDocString message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1173
|
+
# Represents the PickleDocString message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1146
1174
|
#
|
1147
1175
|
|
1148
1176
|
#
|
@@ -1164,7 +1192,7 @@ module Cucumber
|
|
1164
1192
|
|
1165
1193
|
|
1166
1194
|
##
|
1167
|
-
# Represents the PickleStep message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1195
|
+
# Represents the PickleStep message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1168
1196
|
#
|
1169
1197
|
# *
|
1170
1198
|
# An executable step
|
@@ -1211,7 +1239,7 @@ module Cucumber
|
|
1211
1239
|
|
1212
1240
|
|
1213
1241
|
##
|
1214
|
-
# Represents the PickleStepArgument message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1242
|
+
# Represents the PickleStepArgument message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1215
1243
|
#
|
1216
1244
|
# An optional argument
|
1217
1245
|
#
|
@@ -1233,7 +1261,7 @@ module Cucumber
|
|
1233
1261
|
|
1234
1262
|
|
1235
1263
|
##
|
1236
|
-
# Represents the PickleTable message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1264
|
+
# Represents the PickleTable message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1237
1265
|
#
|
1238
1266
|
|
1239
1267
|
#
|
@@ -1251,7 +1279,7 @@ module Cucumber
|
|
1251
1279
|
|
1252
1280
|
|
1253
1281
|
##
|
1254
|
-
# Represents the PickleTableCell message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1282
|
+
# Represents the PickleTableCell message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1255
1283
|
#
|
1256
1284
|
|
1257
1285
|
#
|
@@ -1269,7 +1297,7 @@ module Cucumber
|
|
1269
1297
|
|
1270
1298
|
|
1271
1299
|
##
|
1272
|
-
# Represents the PickleTableRow message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1300
|
+
# Represents the PickleTableRow message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1273
1301
|
#
|
1274
1302
|
|
1275
1303
|
#
|
@@ -1287,7 +1315,7 @@ module Cucumber
|
|
1287
1315
|
|
1288
1316
|
|
1289
1317
|
##
|
1290
|
-
# Represents the PickleTag message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1318
|
+
# Represents the PickleTag message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1291
1319
|
#
|
1292
1320
|
# *
|
1293
1321
|
# A tag
|
@@ -1313,7 +1341,7 @@ module Cucumber
|
|
1313
1341
|
|
1314
1342
|
|
1315
1343
|
##
|
1316
|
-
# Represents the Source message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1344
|
+
# Represents the Source message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1317
1345
|
#
|
1318
1346
|
# //// Source
|
1319
1347
|
#
|
@@ -1354,7 +1382,7 @@ module Cucumber
|
|
1354
1382
|
|
1355
1383
|
|
1356
1384
|
##
|
1357
|
-
# Represents the SourceReference message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1385
|
+
# Represents the SourceReference message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1358
1386
|
#
|
1359
1387
|
# *
|
1360
1388
|
# Points to a [Source](#io.cucumber.messages.Source) identified by `uri` and a
|
@@ -1386,7 +1414,7 @@ module Cucumber
|
|
1386
1414
|
|
1387
1415
|
|
1388
1416
|
##
|
1389
|
-
# Represents the JavaMethod message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1417
|
+
# Represents the JavaMethod message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1390
1418
|
#
|
1391
1419
|
|
1392
1420
|
#
|
@@ -1412,7 +1440,7 @@ module Cucumber
|
|
1412
1440
|
|
1413
1441
|
|
1414
1442
|
##
|
1415
|
-
# Represents the JavaStackTraceElement message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1443
|
+
# Represents the JavaStackTraceElement message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1416
1444
|
#
|
1417
1445
|
|
1418
1446
|
#
|
@@ -1438,7 +1466,7 @@ module Cucumber
|
|
1438
1466
|
|
1439
1467
|
|
1440
1468
|
##
|
1441
|
-
# Represents the StepDefinition message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1469
|
+
# Represents the StepDefinition message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1442
1470
|
#
|
1443
1471
|
|
1444
1472
|
#
|
@@ -1464,7 +1492,7 @@ module Cucumber
|
|
1464
1492
|
|
1465
1493
|
|
1466
1494
|
##
|
1467
|
-
# Represents the StepDefinitionPattern message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1495
|
+
# Represents the StepDefinitionPattern message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1468
1496
|
#
|
1469
1497
|
|
1470
1498
|
#
|
@@ -1486,7 +1514,7 @@ module Cucumber
|
|
1486
1514
|
|
1487
1515
|
|
1488
1516
|
##
|
1489
|
-
# Represents the TestCase message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1517
|
+
# Represents the TestCase message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1490
1518
|
#
|
1491
1519
|
# //// TestCases
|
1492
1520
|
#
|
@@ -1518,7 +1546,7 @@ module Cucumber
|
|
1518
1546
|
|
1519
1547
|
|
1520
1548
|
##
|
1521
|
-
# Represents the Group message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1549
|
+
# Represents the Group message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1522
1550
|
#
|
1523
1551
|
|
1524
1552
|
#
|
@@ -1544,7 +1572,7 @@ module Cucumber
|
|
1544
1572
|
|
1545
1573
|
|
1546
1574
|
##
|
1547
|
-
# Represents the StepMatchArgument message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1575
|
+
# Represents the StepMatchArgument message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1548
1576
|
#
|
1549
1577
|
# *
|
1550
1578
|
# Represents a single argument extracted from a step match and passed to a step definition.
|
@@ -1577,7 +1605,7 @@ module Cucumber
|
|
1577
1605
|
|
1578
1606
|
|
1579
1607
|
##
|
1580
|
-
# Represents the StepMatchArgumentsList message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1608
|
+
# Represents the StepMatchArgumentsList message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1581
1609
|
#
|
1582
1610
|
|
1583
1611
|
#
|
@@ -1595,7 +1623,7 @@ module Cucumber
|
|
1595
1623
|
|
1596
1624
|
|
1597
1625
|
##
|
1598
|
-
# Represents the TestStep message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1626
|
+
# Represents the TestStep message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1599
1627
|
#
|
1600
1628
|
# *
|
1601
1629
|
# A `TestStep` is derived from either a `PickleStep`
|
@@ -1645,7 +1673,7 @@ module Cucumber
|
|
1645
1673
|
|
1646
1674
|
|
1647
1675
|
##
|
1648
|
-
# Represents the TestCaseFinished message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1676
|
+
# Represents the TestCaseFinished message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1649
1677
|
#
|
1650
1678
|
|
1651
1679
|
#
|
@@ -1671,7 +1699,7 @@ module Cucumber
|
|
1671
1699
|
|
1672
1700
|
|
1673
1701
|
##
|
1674
|
-
# Represents the TestCaseStarted message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1702
|
+
# Represents the TestCaseStarted message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1675
1703
|
#
|
1676
1704
|
|
1677
1705
|
#
|
@@ -1694,24 +1722,31 @@ module Cucumber
|
|
1694
1722
|
|
1695
1723
|
attr_reader :test_case_id
|
1696
1724
|
|
1725
|
+
##
|
1726
|
+
# An identifier for the worker process running this test case, if test cases are being run in parallel. The identifier will be unique per worker, but no particular format is defined - it could be an index, uuid, machine name etc - and as such should be assumed that it's not human readable.
|
1727
|
+
|
1728
|
+
attr_reader :worker_id
|
1729
|
+
|
1697
1730
|
attr_reader :timestamp
|
1698
1731
|
|
1699
1732
|
def initialize(
|
1700
1733
|
attempt: 0,
|
1701
1734
|
id: '',
|
1702
1735
|
test_case_id: '',
|
1736
|
+
worker_id: nil,
|
1703
1737
|
timestamp: Timestamp.new
|
1704
1738
|
)
|
1705
1739
|
@attempt = attempt
|
1706
1740
|
@id = id
|
1707
1741
|
@test_case_id = test_case_id
|
1742
|
+
@worker_id = worker_id
|
1708
1743
|
@timestamp = timestamp
|
1709
1744
|
end
|
1710
1745
|
end
|
1711
1746
|
|
1712
1747
|
|
1713
1748
|
##
|
1714
|
-
# Represents the TestRunFinished message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1749
|
+
# Represents the TestRunFinished message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1715
1750
|
#
|
1716
1751
|
|
1717
1752
|
#
|
@@ -1719,16 +1754,12 @@ module Cucumber
|
|
1719
1754
|
class TestRunFinished < ::Cucumber::Messages::Message
|
1720
1755
|
|
1721
1756
|
##
|
1722
|
-
#
|
1723
|
-
# If there are undefined parameter types, the message is simply
|
1724
|
-
# "The following parameter type(s() are not defined: xxx, yyy".
|
1725
|
-
# The independent `UndefinedParameterType` messages can be used to generate
|
1726
|
-
# snippets for those parameter types.
|
1757
|
+
# An informative message about the test run. Typically additional information about failure, but not necessarily.
|
1727
1758
|
|
1728
1759
|
attr_reader :message
|
1729
1760
|
|
1730
1761
|
##
|
1731
|
-
#
|
1762
|
+
# A test run is successful if all steps are either passed or skipped, all before/after hooks passed and no other exceptions where thrown.
|
1732
1763
|
|
1733
1764
|
attr_reader :success
|
1734
1765
|
|
@@ -1737,20 +1768,27 @@ module Cucumber
|
|
1737
1768
|
|
1738
1769
|
attr_reader :timestamp
|
1739
1770
|
|
1771
|
+
##
|
1772
|
+
# Any exception thrown during the test run, if any. Does not include exceptions thrown while executing steps.
|
1773
|
+
|
1774
|
+
attr_reader :exception
|
1775
|
+
|
1740
1776
|
def initialize(
|
1741
1777
|
message: nil,
|
1742
1778
|
success: false,
|
1743
|
-
timestamp: Timestamp.new
|
1779
|
+
timestamp: Timestamp.new,
|
1780
|
+
exception: nil
|
1744
1781
|
)
|
1745
1782
|
@message = message
|
1746
1783
|
@success = success
|
1747
1784
|
@timestamp = timestamp
|
1785
|
+
@exception = exception
|
1748
1786
|
end
|
1749
1787
|
end
|
1750
1788
|
|
1751
1789
|
|
1752
1790
|
##
|
1753
|
-
# Represents the TestRunStarted message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1791
|
+
# Represents the TestRunStarted message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1754
1792
|
#
|
1755
1793
|
|
1756
1794
|
#
|
@@ -1768,7 +1806,7 @@ module Cucumber
|
|
1768
1806
|
|
1769
1807
|
|
1770
1808
|
##
|
1771
|
-
# Represents the TestStepFinished message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1809
|
+
# Represents the TestStepFinished message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1772
1810
|
#
|
1773
1811
|
|
1774
1812
|
#
|
@@ -1798,7 +1836,7 @@ module Cucumber
|
|
1798
1836
|
|
1799
1837
|
|
1800
1838
|
##
|
1801
|
-
# Represents the TestStepResult message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1839
|
+
# Represents the TestStepResult message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1802
1840
|
#
|
1803
1841
|
|
1804
1842
|
#
|
@@ -1807,24 +1845,34 @@ module Cucumber
|
|
1807
1845
|
|
1808
1846
|
attr_reader :duration
|
1809
1847
|
|
1848
|
+
##
|
1849
|
+
# An arbitrary bit of information that explains this result. This can be a stack trace of anything else.
|
1850
|
+
|
1810
1851
|
attr_reader :message
|
1811
1852
|
|
1812
1853
|
attr_reader :status
|
1813
1854
|
|
1855
|
+
##
|
1856
|
+
# Exception thrown while executing this step, if any.
|
1857
|
+
|
1858
|
+
attr_reader :exception
|
1859
|
+
|
1814
1860
|
def initialize(
|
1815
1861
|
duration: Duration.new,
|
1816
1862
|
message: nil,
|
1817
|
-
status: TestStepResultStatus::UNKNOWN
|
1863
|
+
status: TestStepResultStatus::UNKNOWN,
|
1864
|
+
exception: nil
|
1818
1865
|
)
|
1819
1866
|
@duration = duration
|
1820
1867
|
@message = message
|
1821
1868
|
@status = status
|
1869
|
+
@exception = exception
|
1822
1870
|
end
|
1823
1871
|
end
|
1824
1872
|
|
1825
1873
|
|
1826
1874
|
##
|
1827
|
-
# Represents the TestStepStarted message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1875
|
+
# Represents the TestStepStarted message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1828
1876
|
#
|
1829
1877
|
|
1830
1878
|
#
|
@@ -1850,7 +1898,7 @@ module Cucumber
|
|
1850
1898
|
|
1851
1899
|
|
1852
1900
|
##
|
1853
|
-
# Represents the Timestamp message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1901
|
+
# Represents the Timestamp message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1854
1902
|
#
|
1855
1903
|
|
1856
1904
|
#
|
@@ -1883,7 +1931,7 @@ module Cucumber
|
|
1883
1931
|
|
1884
1932
|
|
1885
1933
|
##
|
1886
|
-
# Represents the UndefinedParameterType message in Cucumber's {message protocol}[https://github.com/cucumber/
|
1934
|
+
# Represents the UndefinedParameterType message in Cucumber's {message protocol}[https://github.com/cucumber/messages].
|
1887
1935
|
#
|
1888
1936
|
|
1889
1937
|
#
|
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: 21.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: 2022-
|
11
|
+
date: 2022-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber-compatibility-kit
|
@@ -103,11 +103,11 @@ homepage: https://github.com/cucumber/messages-ruby#readme
|
|
103
103
|
licenses:
|
104
104
|
- MIT
|
105
105
|
metadata:
|
106
|
-
bug_tracker_uri: https://github.com/cucumber/
|
107
|
-
changelog_uri: https://github.com/cucumber/
|
108
|
-
documentation_uri: https://www.rubydoc.info/github/cucumber/messages
|
106
|
+
bug_tracker_uri: https://github.com/cucumber/messages/issues
|
107
|
+
changelog_uri: https://github.com/cucumber/messages/blob/main/CHANGELOG.md
|
108
|
+
documentation_uri: https://www.rubydoc.info/github/cucumber/messages
|
109
109
|
mailing_list_uri: https://groups.google.com/forum/#!forum/cukes
|
110
|
-
source_code_uri: https://github.com/cucumber/
|
110
|
+
source_code_uri: https://github.com/cucumber/messages
|
111
111
|
post_install_message:
|
112
112
|
rdoc_options:
|
113
113
|
- "--charset=UTF-8"
|
@@ -127,7 +127,7 @@ requirements: []
|
|
127
127
|
rubygems_version: 3.2.22
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
|
-
summary: cucumber-messages-
|
130
|
+
summary: cucumber-messages-21.0.0
|
131
131
|
test_files:
|
132
132
|
- spec/capture_warnings.rb
|
133
133
|
- spec/cucumber/messages/acceptance_spec.rb
|