cucumber-compatibility-kit 9.1.0 → 9.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/hooks/hooks.feature.ndjson +74 -63
- data/features/hooks/hooks.feature.rb +5 -0
- data/features/skipped/skipped.feature.rb +1 -1
- data/lib/keys_checker.rb +5 -1
- data/lib/messages_comparator.rb +3 -0
- data/spec/keys_checker_spec.rb +29 -0
- data/spec/messages_comparator_spec.rb +26 -0
- metadata +13 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39ac6663c41acd3f60507452097f4b3d29424f2422cc92594aa04ff6e9956d69
|
4
|
+
data.tar.gz: 0b5f6efe6314159054816606d14c3ce03c4de1c0fd6c93aa34c9794c3feda1b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adc0a22622d6832462827401c355317949449995ed84d7b7ffd4822bef41c573f8cc77d26d1dad0992f98a575129932f35bad8edba235717f2e0075a347482cb
|
7
|
+
data.tar.gz: 7d15744e90125017676be8ef82ff1c4e15c6de4a92b79c86a2b25444e9afb308969283e1586819dca34045a8403130b94299353dd7512bc2821a4eec7fa19348
|
@@ -1,66 +1,77 @@
|
|
1
|
-
{"meta":{"cpu":{"name":"x64"},"implementation":{"name":"fake-cucumber","version":"15.0.0"},"os":{"name":"linux","version":"5.
|
1
|
+
{"meta":{"cpu":{"name":"x64"},"implementation":{"name":"fake-cucumber","version":"15.0.0"},"os":{"name":"linux","version":"5.10.25-linuxkit"},"protocolVersion":"17.1.1","runtime":{"name":"node.js","version":"14.17.3"}}}
|
2
2
|
{"source":{"data":"Feature: Hooks\n Hooks are special steps that run before or after each scenario's steps.\n They can also conditionally target specific scenarios, using tag expressions\n\n Scenario: no tags, passed step\n When a step passes\n\n Scenario: no tags, failed step\n When a step throws an exception\n\n Scenario: no tags, undefined step\n When a step throws an exception\n\n @some-tag\n Scenario: with a tag, passed step\n When a step passes\n\n @with-attachment\n Scenario: with an attachment in the hook\n When a step passes","mediaType":"text/x.cucumber.gherkin+plain","uri":"features/hooks/hooks.feature"}}
|
3
|
-
{"gherkinDocument":{"comments":[],"feature":{"children":[{"scenario":{"description":"","examples":[],"id":"
|
4
|
-
{"pickle":{"astNodeIds":["
|
5
|
-
{"pickle":{"astNodeIds":["
|
6
|
-
{"pickle":{"astNodeIds":["
|
7
|
-
{"pickle":{"astNodeIds":["
|
8
|
-
{"pickle":{"astNodeIds":["
|
9
|
-
{"stepDefinition":{"id":"
|
10
|
-
{"stepDefinition":{"id":"
|
3
|
+
{"gherkinDocument":{"comments":[],"feature":{"children":[{"scenario":{"description":"","examples":[],"id":"8","keyword":"Scenario","location":{"column":3,"line":5},"name":"no tags, passed step","steps":[{"id":"7","keyword":"When ","location":{"column":5,"line":6},"text":"a step passes"}],"tags":[]}},{"scenario":{"description":"","examples":[],"id":"10","keyword":"Scenario","location":{"column":3,"line":8},"name":"no tags, failed step","steps":[{"id":"9","keyword":"When ","location":{"column":5,"line":9},"text":"a step throws an exception"}],"tags":[]}},{"scenario":{"description":"","examples":[],"id":"12","keyword":"Scenario","location":{"column":3,"line":11},"name":"no tags, undefined step","steps":[{"id":"11","keyword":"When ","location":{"column":5,"line":12},"text":"a step throws an exception"}],"tags":[]}},{"scenario":{"description":"","examples":[],"id":"15","keyword":"Scenario","location":{"column":3,"line":15},"name":"with a tag, passed step","steps":[{"id":"13","keyword":"When ","location":{"column":5,"line":16},"text":"a step passes"}],"tags":[{"id":"14","location":{"column":3,"line":14},"name":"@some-tag"}]}},{"scenario":{"description":"","examples":[],"id":"18","keyword":"Scenario","location":{"column":3,"line":19},"name":"with an attachment in the hook","steps":[{"id":"16","keyword":"When ","location":{"column":5,"line":20},"text":"a step passes"}],"tags":[{"id":"17","location":{"column":3,"line":18},"name":"@with-attachment"}]}}],"description":" Hooks are special steps that run before or after each scenario's steps.\n They can also conditionally target specific scenarios, using tag expressions","keyword":"Feature","language":"en","location":{"column":1,"line":1},"name":"Hooks","tags":[]},"uri":"features/hooks/hooks.feature"}}
|
4
|
+
{"pickle":{"astNodeIds":["8"],"id":"20","language":"en","name":"no tags, passed step","steps":[{"astNodeIds":["7"],"id":"19","text":"a step passes"}],"tags":[],"uri":"features/hooks/hooks.feature"}}
|
5
|
+
{"pickle":{"astNodeIds":["10"],"id":"22","language":"en","name":"no tags, failed step","steps":[{"astNodeIds":["9"],"id":"21","text":"a step throws an exception"}],"tags":[],"uri":"features/hooks/hooks.feature"}}
|
6
|
+
{"pickle":{"astNodeIds":["12"],"id":"24","language":"en","name":"no tags, undefined step","steps":[{"astNodeIds":["11"],"id":"23","text":"a step throws an exception"}],"tags":[],"uri":"features/hooks/hooks.feature"}}
|
7
|
+
{"pickle":{"astNodeIds":["15"],"id":"26","language":"en","name":"with a tag, passed step","steps":[{"astNodeIds":["13"],"id":"25","text":"a step passes"}],"tags":[{"astNodeId":"14","name":"@some-tag"}],"uri":"features/hooks/hooks.feature"}}
|
8
|
+
{"pickle":{"astNodeIds":["18"],"id":"28","language":"en","name":"with an attachment in the hook","steps":[{"astNodeIds":["16"],"id":"27","text":"a step passes"}],"tags":[{"astNodeId":"17","name":"@with-attachment"}],"uri":"features/hooks/hooks.feature"}}
|
9
|
+
{"stepDefinition":{"id":"2","pattern":{"source":"a step passes","type":"CUCUMBER_EXPRESSION"},"sourceReference":{"location":{"line":12},"uri":"features/hooks/hooks.feature.ts"}}}
|
10
|
+
{"stepDefinition":{"id":"3","pattern":{"source":"a step throws an exception","type":"CUCUMBER_EXPRESSION"},"sourceReference":{"location":{"line":16},"uri":"features/hooks/hooks.feature.ts"}}}
|
11
11
|
{"hook":{"id":"0","sourceReference":{"location":{"line":4},"uri":"features/hooks/hooks.feature.ts"}}}
|
12
|
-
{"hook":{"id":"
|
13
|
-
{"hook":{"id":"4","sourceReference":{"location":{"line":20},"uri":"features/hooks/hooks.feature.ts"}
|
14
|
-
{"hook":{"id":"5","sourceReference":{"location":{"line":24},"uri":"features/hooks/hooks.feature.ts"},"tagExpression":"@
|
12
|
+
{"hook":{"id":"1","name":"A named hook","sourceReference":{"location":{"line":8},"uri":"features/hooks/hooks.feature.ts"}}}
|
13
|
+
{"hook":{"id":"4","sourceReference":{"location":{"line":20},"uri":"features/hooks/hooks.feature.ts"}}}
|
14
|
+
{"hook":{"id":"5","sourceReference":{"location":{"line":24},"uri":"features/hooks/hooks.feature.ts"},"tagExpression":"@some-tag or @some-other-tag"}}
|
15
|
+
{"hook":{"id":"6","sourceReference":{"location":{"line":28},"uri":"features/hooks/hooks.feature.ts"},"tagExpression":"@with-attachment"}}
|
15
16
|
{"testRunStarted":{"timestamp":{"nanos":0,"seconds":0}}}
|
16
|
-
{"testCase":{"id":"
|
17
|
-
{"testCase":{"id":"
|
18
|
-
{"testCase":{"id":"
|
19
|
-
{"testCase":{"id":"
|
20
|
-
{"testCase":{"id":"
|
21
|
-
{"testCaseStarted":{"attempt":0,"id":"
|
22
|
-
{"testStepStarted":{"testCaseStartedId":"
|
23
|
-
{"testStepFinished":{"testCaseStartedId":"
|
24
|
-
{"testStepStarted":{"testCaseStartedId":"
|
25
|
-
{"testStepFinished":{"testCaseStartedId":"
|
26
|
-
{"testStepStarted":{"testCaseStartedId":"
|
27
|
-
{"testStepFinished":{"testCaseStartedId":"
|
28
|
-
{"
|
29
|
-
{"
|
30
|
-
{"
|
31
|
-
{"
|
32
|
-
{"testStepStarted":{"testCaseStartedId":"
|
33
|
-
{"testStepFinished":{"testCaseStartedId":"
|
34
|
-
{"testStepStarted":{"testCaseStartedId":"
|
35
|
-
{"testStepFinished":{"testCaseStartedId":"
|
36
|
-
{"
|
37
|
-
{"
|
38
|
-
{"testStepStarted":{"testCaseStartedId":"
|
39
|
-
{"testStepFinished":{"testCaseStartedId":"
|
40
|
-
{"
|
41
|
-
{"
|
42
|
-
{"testStepStarted":{"testCaseStartedId":"
|
43
|
-
{"testStepFinished":{"testCaseStartedId":"
|
44
|
-
{"
|
45
|
-
{"
|
46
|
-
{"testStepStarted":{"testCaseStartedId":"
|
47
|
-
{"testStepFinished":{"testCaseStartedId":"
|
48
|
-
{"testStepStarted":{"testCaseStartedId":"
|
49
|
-
{"testStepFinished":{"testCaseStartedId":"
|
50
|
-
{"
|
51
|
-
{"
|
52
|
-
{"testStepStarted":{"testCaseStartedId":"
|
53
|
-
{"testStepFinished":{"testCaseStartedId":"
|
54
|
-
{"
|
55
|
-
{"
|
56
|
-
{"testStepStarted":{"testCaseStartedId":"
|
57
|
-
{"testStepFinished":{"testCaseStartedId":"
|
58
|
-
{"testStepStarted":{"testCaseStartedId":"
|
59
|
-
{"testStepFinished":{"testCaseStartedId":"
|
60
|
-
{"testStepStarted":{"testCaseStartedId":"
|
61
|
-
{"
|
62
|
-
{"
|
63
|
-
{"
|
64
|
-
{"
|
65
|
-
{"
|
66
|
-
{"
|
17
|
+
{"testCase":{"id":"33","pickleId":"20","testSteps":[{"hookId":"0","id":"29"},{"hookId":"1","id":"30"},{"id":"31","pickleStepId":"19","stepDefinitionIds":["2"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]},{"hookId":"4","id":"32"}]}}
|
18
|
+
{"testCase":{"id":"38","pickleId":"22","testSteps":[{"hookId":"0","id":"34"},{"hookId":"1","id":"35"},{"id":"36","pickleStepId":"21","stepDefinitionIds":["3"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]},{"hookId":"4","id":"37"}]}}
|
19
|
+
{"testCase":{"id":"43","pickleId":"24","testSteps":[{"hookId":"0","id":"39"},{"hookId":"1","id":"40"},{"id":"41","pickleStepId":"23","stepDefinitionIds":["3"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]},{"hookId":"4","id":"42"}]}}
|
20
|
+
{"testCase":{"id":"49","pickleId":"26","testSteps":[{"hookId":"0","id":"44"},{"hookId":"1","id":"45"},{"id":"46","pickleStepId":"25","stepDefinitionIds":["2"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]},{"hookId":"5","id":"47"},{"hookId":"4","id":"48"}]}}
|
21
|
+
{"testCase":{"id":"55","pickleId":"28","testSteps":[{"hookId":"0","id":"50"},{"hookId":"1","id":"51"},{"id":"52","pickleStepId":"27","stepDefinitionIds":["2"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]},{"hookId":"6","id":"53"},{"hookId":"4","id":"54"}]}}
|
22
|
+
{"testCaseStarted":{"attempt":0,"id":"56","testCaseId":"33","timestamp":{"nanos":1000000,"seconds":0}}}
|
23
|
+
{"testStepStarted":{"testCaseStartedId":"56","testStepId":"29","timestamp":{"nanos":2000000,"seconds":0}}}
|
24
|
+
{"testStepFinished":{"testCaseStartedId":"56","testStepId":"29","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":3000000,"seconds":0}}}
|
25
|
+
{"testStepStarted":{"testCaseStartedId":"56","testStepId":"30","timestamp":{"nanos":4000000,"seconds":0}}}
|
26
|
+
{"testStepFinished":{"testCaseStartedId":"56","testStepId":"30","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":5000000,"seconds":0}}}
|
27
|
+
{"testStepStarted":{"testCaseStartedId":"56","testStepId":"31","timestamp":{"nanos":6000000,"seconds":0}}}
|
28
|
+
{"testStepFinished":{"testCaseStartedId":"56","testStepId":"31","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":7000000,"seconds":0}}}
|
29
|
+
{"testStepStarted":{"testCaseStartedId":"56","testStepId":"32","timestamp":{"nanos":8000000,"seconds":0}}}
|
30
|
+
{"testStepFinished":{"testCaseStartedId":"56","testStepId":"32","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in hook\nfeatures/hooks/hooks.feature:5","status":"FAILED"},"timestamp":{"nanos":9000000,"seconds":0}}}
|
31
|
+
{"testCaseFinished":{"testCaseStartedId":"56","timestamp":{"nanos":10000000,"seconds":0},"willBeRetried":false}}
|
32
|
+
{"testCaseStarted":{"attempt":0,"id":"57","testCaseId":"38","timestamp":{"nanos":11000000,"seconds":0}}}
|
33
|
+
{"testStepStarted":{"testCaseStartedId":"57","testStepId":"34","timestamp":{"nanos":12000000,"seconds":0}}}
|
34
|
+
{"testStepFinished":{"testCaseStartedId":"57","testStepId":"34","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":13000000,"seconds":0}}}
|
35
|
+
{"testStepStarted":{"testCaseStartedId":"57","testStepId":"35","timestamp":{"nanos":14000000,"seconds":0}}}
|
36
|
+
{"testStepFinished":{"testCaseStartedId":"57","testStepId":"35","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":15000000,"seconds":0}}}
|
37
|
+
{"testStepStarted":{"testCaseStartedId":"57","testStepId":"36","timestamp":{"nanos":16000000,"seconds":0}}}
|
38
|
+
{"testStepFinished":{"testCaseStartedId":"57","testStepId":"36","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in step\nfeatures/hooks/hooks.feature:9","status":"FAILED"},"timestamp":{"nanos":17000000,"seconds":0}}}
|
39
|
+
{"testStepStarted":{"testCaseStartedId":"57","testStepId":"37","timestamp":{"nanos":18000000,"seconds":0}}}
|
40
|
+
{"testStepFinished":{"testCaseStartedId":"57","testStepId":"37","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in hook\nfeatures/hooks/hooks.feature:8","status":"FAILED"},"timestamp":{"nanos":19000000,"seconds":0}}}
|
41
|
+
{"testCaseFinished":{"testCaseStartedId":"57","timestamp":{"nanos":20000000,"seconds":0},"willBeRetried":false}}
|
42
|
+
{"testCaseStarted":{"attempt":0,"id":"58","testCaseId":"43","timestamp":{"nanos":21000000,"seconds":0}}}
|
43
|
+
{"testStepStarted":{"testCaseStartedId":"58","testStepId":"39","timestamp":{"nanos":22000000,"seconds":0}}}
|
44
|
+
{"testStepFinished":{"testCaseStartedId":"58","testStepId":"39","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":23000000,"seconds":0}}}
|
45
|
+
{"testStepStarted":{"testCaseStartedId":"58","testStepId":"40","timestamp":{"nanos":24000000,"seconds":0}}}
|
46
|
+
{"testStepFinished":{"testCaseStartedId":"58","testStepId":"40","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":25000000,"seconds":0}}}
|
47
|
+
{"testStepStarted":{"testCaseStartedId":"58","testStepId":"41","timestamp":{"nanos":26000000,"seconds":0}}}
|
48
|
+
{"testStepFinished":{"testCaseStartedId":"58","testStepId":"41","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in step\nfeatures/hooks/hooks.feature:12","status":"FAILED"},"timestamp":{"nanos":27000000,"seconds":0}}}
|
49
|
+
{"testStepStarted":{"testCaseStartedId":"58","testStepId":"42","timestamp":{"nanos":28000000,"seconds":0}}}
|
50
|
+
{"testStepFinished":{"testCaseStartedId":"58","testStepId":"42","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in hook\nfeatures/hooks/hooks.feature:11","status":"FAILED"},"timestamp":{"nanos":29000000,"seconds":0}}}
|
51
|
+
{"testCaseFinished":{"testCaseStartedId":"58","timestamp":{"nanos":30000000,"seconds":0},"willBeRetried":false}}
|
52
|
+
{"testCaseStarted":{"attempt":0,"id":"59","testCaseId":"49","timestamp":{"nanos":31000000,"seconds":0}}}
|
53
|
+
{"testStepStarted":{"testCaseStartedId":"59","testStepId":"44","timestamp":{"nanos":32000000,"seconds":0}}}
|
54
|
+
{"testStepFinished":{"testCaseStartedId":"59","testStepId":"44","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":33000000,"seconds":0}}}
|
55
|
+
{"testStepStarted":{"testCaseStartedId":"59","testStepId":"45","timestamp":{"nanos":34000000,"seconds":0}}}
|
56
|
+
{"testStepFinished":{"testCaseStartedId":"59","testStepId":"45","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":35000000,"seconds":0}}}
|
57
|
+
{"testStepStarted":{"testCaseStartedId":"59","testStepId":"46","timestamp":{"nanos":36000000,"seconds":0}}}
|
58
|
+
{"testStepFinished":{"testCaseStartedId":"59","testStepId":"46","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":37000000,"seconds":0}}}
|
59
|
+
{"testStepStarted":{"testCaseStartedId":"59","testStepId":"47","timestamp":{"nanos":38000000,"seconds":0}}}
|
60
|
+
{"testStepFinished":{"testCaseStartedId":"59","testStepId":"47","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in conditional hook\nfeatures/hooks/hooks.feature:15","status":"FAILED"},"timestamp":{"nanos":39000000,"seconds":0}}}
|
61
|
+
{"testStepStarted":{"testCaseStartedId":"59","testStepId":"48","timestamp":{"nanos":40000000,"seconds":0}}}
|
62
|
+
{"testStepFinished":{"testCaseStartedId":"59","testStepId":"48","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in hook\nfeatures/hooks/hooks.feature:15","status":"FAILED"},"timestamp":{"nanos":41000000,"seconds":0}}}
|
63
|
+
{"testCaseFinished":{"testCaseStartedId":"59","timestamp":{"nanos":42000000,"seconds":0},"willBeRetried":false}}
|
64
|
+
{"testCaseStarted":{"attempt":0,"id":"60","testCaseId":"55","timestamp":{"nanos":43000000,"seconds":0}}}
|
65
|
+
{"testStepStarted":{"testCaseStartedId":"60","testStepId":"50","timestamp":{"nanos":44000000,"seconds":0}}}
|
66
|
+
{"testStepFinished":{"testCaseStartedId":"60","testStepId":"50","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":45000000,"seconds":0}}}
|
67
|
+
{"testStepStarted":{"testCaseStartedId":"60","testStepId":"51","timestamp":{"nanos":46000000,"seconds":0}}}
|
68
|
+
{"testStepFinished":{"testCaseStartedId":"60","testStepId":"51","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":47000000,"seconds":0}}}
|
69
|
+
{"testStepStarted":{"testCaseStartedId":"60","testStepId":"52","timestamp":{"nanos":48000000,"seconds":0}}}
|
70
|
+
{"testStepFinished":{"testCaseStartedId":"60","testStepId":"52","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":49000000,"seconds":0}}}
|
71
|
+
{"testStepStarted":{"testCaseStartedId":"60","testStepId":"53","timestamp":{"nanos":50000000,"seconds":0}}}
|
72
|
+
{"attachment":{"body":"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJtbC0zIG1sLW1kLTAiIHZpZXdCb3g9IjAgMCA0MC41OSA0Ni4zMSIgd2lkdGg9IjQwLjU5IiBoZWlnaHQ9IjQ2LjMxIj4KICAgIDxnPgogICAgICAgIDxwYXRoIGZpbGw9IiMyM2Q5NmMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTMwLjI4MyAzLjY0NXEtLjUyOC0uMzE3LTEuMDgtLjU5M2ExNi4xNjQgMTYuMTY0IDAgMDAtMS4xNTQtLjUxOGMtLjEyNC0uMDUyLS4yNDctLjEtLjM3Mi0uMTQ5LS4zNDMtLjEyNy0uNjg5LS4yNjgtMS4wNDItLjM3MWExOS40MjcgMTkuNDI3IDAgMTAtOS43OTIgMzcuNTF2NS41NmMxMS42NzYtMS43NTMgMjIuMDE2LTEwLjk3OSAyMi43ODctMjMuMDkzLjQ1OS03LjI4OS0zLjE5My0xNC43My05LjM0Ny0xOC4zNDZ6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iIzE3MzY0NyIgZD0iTTE1Ljc4NyA0Ni4zMDd2LTUuOTM1QTIwLjQ3MiAyMC40NzIgMCAxMTI2Ljk1OSAxLjAxNWMuMjc0LjA4LjU1Ny4xODcuODMy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wLTMuMTg4LjU1NSA1Ljk1OSA1Ljk1OSAwIDAwMy4zMTYgMy4zODYgMy42NzIgMy42NzIgMCAwMDEuNDQyLjMyIDEuOCAxLjggMCAwMDEuMzEtMy4yMDl6Ii8+CiAgICA8L2c+Cjwvc3ZnPg==","contentEncoding":"BASE64","mediaType":"image/svg+xml","testCaseStartedId":"60","testStepId":"53"}}
|
73
|
+
{"testStepFinished":{"testCaseStartedId":"60","testStepId":"53","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"status":"PASSED"},"timestamp":{"nanos":51000000,"seconds":0}}}
|
74
|
+
{"testStepStarted":{"testCaseStartedId":"60","testStepId":"54","timestamp":{"nanos":52000000,"seconds":0}}}
|
75
|
+
{"testStepFinished":{"testCaseStartedId":"60","testStepId":"54","testStepResult":{"duration":{"nanos":1000000,"seconds":0},"message":"Exception in hook\nfeatures/hooks/hooks.feature:19","status":"FAILED"},"timestamp":{"nanos":53000000,"seconds":0}}}
|
76
|
+
{"testCaseFinished":{"testCaseStartedId":"60","timestamp":{"nanos":54000000,"seconds":0},"willBeRetried":false}}
|
77
|
+
{"testRunFinished":{"success":false,"timestamp":{"nanos":55000000,"seconds":0}}}
|
data/lib/keys_checker.rb
CHANGED
@@ -14,11 +14,15 @@ module CCK
|
|
14
14
|
|
15
15
|
missing_keys = (expected_keys - found_keys)
|
16
16
|
|
17
|
-
extra_keys = (found_keys - expected_keys)
|
17
|
+
extra_keys = (found_keys - expected_keys).reject { |key|
|
18
|
+
ENV['CI'] && found.class == Cucumber::Messages::Meta && key == :ci
|
19
|
+
}
|
18
20
|
|
19
21
|
errors << "Found extra keys in message #{found.class.name}: #{extra_keys}" unless extra_keys.empty?
|
20
22
|
errors << "Missing keys in message #{found.class.name}: #{missing_keys}" unless missing_keys.empty?
|
21
23
|
errors
|
24
|
+
rescue StandardError => e
|
25
|
+
["Unexpected error: #{e.message}"]
|
22
26
|
end
|
23
27
|
end
|
24
28
|
end
|
data/lib/messages_comparator.rb
CHANGED
@@ -29,6 +29,8 @@ module CCK
|
|
29
29
|
|
30
30
|
found_by_type.keys.each do |type|
|
31
31
|
compare_list(found_by_type[type], expected_by_type[type])
|
32
|
+
rescue StandardError => e
|
33
|
+
@all_errors << "Error whild comparing #{type}: #{e.message}"
|
32
34
|
end
|
33
35
|
end
|
34
36
|
|
@@ -62,6 +64,7 @@ module CCK
|
|
62
64
|
return if found.is_a?(Cucumber::Messages::Pickle)
|
63
65
|
return if found.is_a?(Cucumber::Messages::Timestamp) && expected.is_a?(Cucumber::Messages::Timestamp)
|
64
66
|
return if found.is_a?(Cucumber::Messages::Duration) && expected.is_a?(Cucumber::Messages::Duration)
|
67
|
+
return if ENV['CI'] && found.is_a?(Cucumber::Messages::Ci) && expected.nil?
|
65
68
|
|
66
69
|
@compared << found.class.name
|
67
70
|
@all_errors << @validator.compare(found, expected)
|
data/spec/keys_checker_spec.rb
CHANGED
@@ -73,5 +73,34 @@ describe CCK::KeysChecker do
|
|
73
73
|
expect(subject.compare(default_set, default_not_set)).to be_empty
|
74
74
|
end
|
75
75
|
end
|
76
|
+
|
77
|
+
context 'when executed as part of a CI' do
|
78
|
+
before do
|
79
|
+
allow(ENV).to receive(:[]).with('CI').and_return(true)
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'ignores actual CI related messages' do
|
83
|
+
found = Cucumber::Messages::Meta.new(
|
84
|
+
ci: Cucumber::Messages::Ci.new(name: 'Some CI')
|
85
|
+
)
|
86
|
+
|
87
|
+
expected = Cucumber::Messages::Meta.new
|
88
|
+
|
89
|
+
expect(subject.compare(found, expected)).to be_empty
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
context 'when an unexcpected error occurs' do
|
94
|
+
it 'does not raise error' do
|
95
|
+
expect {
|
96
|
+
subject.compare(nil, nil)
|
97
|
+
}.not_to raise_error
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'returns the error' do
|
101
|
+
expect(subject.compare(nil, nil))
|
102
|
+
.to eq(['Unexpected error: wrong number of arguments (given 1, expected 0)'])
|
103
|
+
end
|
104
|
+
end
|
76
105
|
end
|
77
106
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'cucumber/messages'
|
3
|
+
require_relative '../lib/messages_comparator'
|
4
|
+
|
5
|
+
describe CCK::MessagesComparator do
|
6
|
+
subject() { CCK::MessagesComparator }
|
7
|
+
|
8
|
+
context 'when executed as part of a CI' do
|
9
|
+
before do
|
10
|
+
allow(ENV).to receive(:[]).with('CI').and_return(true)
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'ignores actual CI related messages' do
|
14
|
+
found_message_ci = Cucumber::Messages::Ci.new(name: 'Some CI')
|
15
|
+
found_message_meta = Cucumber::Messages::Meta.new(ci: found_message_ci)
|
16
|
+
found_message_envelope = Cucumber::Messages::Envelope.new(meta: found_message_meta)
|
17
|
+
|
18
|
+
expected_message_meta = Cucumber::Messages::Meta.new()
|
19
|
+
expected_message_envelope = Cucumber::Messages::Envelope.new(meta: expected_message_meta)
|
20
|
+
|
21
|
+
comparator = subject.new(CCK::KeysChecker, [found_message_envelope], [expected_message_envelope])
|
22
|
+
|
23
|
+
expect(comparator.errors).to be_empty
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-compatibility-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aurélien Reeves
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2022-04-01 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: cucumber-messages
|
@@ -19,20 +19,20 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '18.0'
|
23
23
|
- - ">="
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version:
|
25
|
+
version: 18.0.0
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '18.0'
|
33
33
|
- - ">="
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version:
|
35
|
+
version: 18.0.0
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,20 +59,20 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '3.
|
62
|
+
version: '3.11'
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version: 3.
|
65
|
+
version: 3.11.0
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
69
|
requirements:
|
70
70
|
- - "~>"
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version: '3.
|
72
|
+
version: '3.11'
|
73
73
|
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 3.
|
75
|
+
version: 3.11.0
|
76
76
|
description: Kit to check compatibility with official cucumber implementation
|
77
77
|
email: cukebot@cucumber.io
|
78
78
|
executables: []
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- spec/capture_warnings.rb
|
131
131
|
- spec/cucumber-compatibility-kit_spec.rb
|
132
132
|
- spec/keys_checker_spec.rb
|
133
|
+
- spec/messages_comparator_spec.rb
|
133
134
|
homepage: https://github.com/cucumber/common
|
134
135
|
licenses:
|
135
136
|
- MIT
|
@@ -158,8 +159,9 @@ requirements: []
|
|
158
159
|
rubygems_version: 3.1.2
|
159
160
|
signing_key:
|
160
161
|
specification_version: 4
|
161
|
-
summary: cucumber-compatibility-kit-9.
|
162
|
+
summary: cucumber-compatibility-kit-9.2.0
|
162
163
|
test_files:
|
163
164
|
- spec/capture_warnings.rb
|
165
|
+
- spec/messages_comparator_spec.rb
|
164
166
|
- spec/cucumber-compatibility-kit_spec.rb
|
165
167
|
- spec/keys_checker_spec.rb
|