Skip to content

Commit 4260c46

Browse files
committed
Update samples
1 parent 72f57a6 commit 4260c46

File tree

60 files changed

+714
-714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+714
-714
lines changed

testdata/compatibility-kit/attachments.feature.ndjson

Lines changed: 0 additions & 61 deletions
This file was deleted.

testdata/compatibility-kit/attachments.ndjson

Lines changed: 61 additions & 0 deletions
Large diffs are not rendered by default.

testdata/compatibility-kit/attachments.feature.ndjson.jvm.json renamed to testdata/compatibility-kit/attachments.ndjson.jvm.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"keyword": "When ",
2121
"line": 15,
2222
"match": {
23-
"location": "samples/attachments/attachments.feature.ts:4",
23+
"location": "samples/attachments/attachments.ts:4",
2424
"arguments": [
2525
{
2626
"val": "\"hello\"",
@@ -56,7 +56,7 @@
5656
"keyword": "When ",
5757
"line": 18,
5858
"match": {
59-
"location": "samples/attachments/attachments.feature.ts:8",
59+
"location": "samples/attachments/attachments.ts:8",
6060
"arguments": [
6161
{
6262
"val": "\"hello\"",
@@ -88,7 +88,7 @@
8888
"keyword": "When ",
8989
"line": 21,
9090
"match": {
91-
"location": "samples/attachments/attachments.feature.ts:12"
91+
"location": "samples/attachments/attachments.ts:12"
9292
},
9393
"name": "text with ANSI escapes is logged",
9494
"result": {
@@ -114,7 +114,7 @@
114114
"keyword": "When ",
115115
"line": 24,
116116
"match": {
117-
"location": "samples/attachments/attachments.feature.ts:18",
117+
"location": "samples/attachments/attachments.ts:18",
118118
"arguments": [
119119
{
120120
"val": "\"application/json\"",
@@ -150,7 +150,7 @@
150150
"keyword": "When ",
151151
"line": 30,
152152
"match": {
153-
"location": "samples/attachments/attachments.feature.ts:22",
153+
"location": "samples/attachments/attachments.ts:22",
154154
"arguments": [
155155
{
156156
"val": "10",
@@ -189,7 +189,7 @@
189189
"keyword": "When ",
190190
"line": 33,
191191
"match": {
192-
"location": "samples/attachments/attachments.feature.ts:31"
192+
"location": "samples/attachments/attachments.ts:31"
193193
},
194194
"name": "a PDF document is attached and renamed",
195195
"result": {
@@ -219,7 +219,7 @@
219219
"keyword": "When ",
220220
"line": 36,
221221
"match": {
222-
"location": "samples/attachments/attachments.feature.ts:35",
222+
"location": "samples/attachments/attachments.ts:38",
223223
"arguments": [
224224
{
225225
"val": "\"https://cucumber.io\"",

testdata/compatibility-kit/cdata.feature.ndjson

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{"meta":{"protocolVersion":"28.0.0","implementation":{"name":"fake-cucumber","version":"123.45.6"},"cpu":{"name":"arm64"},"os":{"name":"darwin","version":"24.5.0"},"runtime":{"name":"Node.js","version":"24.4.1"},"ci":{"name":"GitHub Actions","url":"https://github.com/cucumber-ltd/shouty.rb/actions/runs/154666429","buildNumber":"154666429","git":{"revision":"99684bcacf01d95875834d87903dcb072306c9ad","remote":"https://github.com/cucumber-ltd/shouty.rb.git","branch":"main"}}}}
2+
{"source":{"data":"Feature: cdata\n Cucumber xml formatters should be able to handle xml cdata elements.\n\n Scenario: cdata\n Given I have 42 <![CDATA[cukes]]> in my belly\n","uri":"samples/cdata/cdata.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
3+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"cdata","description":" Cucumber xml formatters should be able to handle xml cdata elements.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":4,"column":3},"keyword":"Scenario","name":"cdata","description":"","steps":[{"id":"0","location":{"line":5,"column":5},"keyword":"Given ","keywordType":"Context","text":"I have 42 <![CDATA[cukes]]> in my belly"}],"examples":[]}}]},"comments":[],"uri":"samples/cdata/cdata.feature"}}
4+
{"pickle":{"id":"3","uri":"samples/cdata/cdata.feature","astNodeIds":["1"],"tags":[],"name":"cdata","language":"en","steps":[{"id":"2","text":"I have 42 <![CDATA[cukes]]> in my belly","type":"Context","astNodeIds":["0"]}]}}
5+
{"stepDefinition":{"id":"4","pattern":{"type":"CUCUMBER_EXPRESSION","source":"I have {int} <![CDATA[cukes]]> in my belly"},"sourceReference":{"uri":"samples/cdata/cdata.ts","location":{"line":3}}}}
6+
{"testRunStarted":{"id":"5","timestamp":{"seconds":0,"nanos":0}}}
7+
{"testCase":{"id":"6","pickleId":"3","testSteps":[{"id":"7","pickleStepId":"2","stepDefinitionIds":["4"],"stepMatchArgumentsLists":[{"stepMatchArguments":[{"group":{"start":7,"value":"42","children":[]},"parameterTypeName":"int"}]}]}],"testRunStartedId":"5"}}
8+
{"testCaseStarted":{"id":"8","testCaseId":"6","timestamp":{"seconds":0,"nanos":1000000},"attempt":0}}
9+
{"testStepStarted":{"testCaseStartedId":"8","testStepId":"7","timestamp":{"seconds":0,"nanos":2000000}}}
10+
{"testStepFinished":{"testCaseStartedId":"8","testStepId":"7","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":3000000}}}
11+
{"testCaseFinished":{"testCaseStartedId":"8","timestamp":{"seconds":0,"nanos":4000000},"willBeRetried":false}}
12+
{"testRunFinished":{"testRunStartedId":"5","timestamp":{"seconds":0,"nanos":5000000},"success":true}}

testdata/compatibility-kit/cdata.feature.ndjson.jvm.json renamed to testdata/compatibility-kit/cdata.ndjson.jvm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"keyword": "Given ",
2121
"line": 5,
2222
"match": {
23-
"location": "samples/cdata/cdata.feature.ts:3",
23+
"location": "samples/cdata/cdata.ts:3",
2424
"arguments": [
2525
{
2626
"val": "42",

testdata/compatibility-kit/data-tables.feature.ndjson

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{"meta":{"protocolVersion":"28.0.0","implementation":{"name":"fake-cucumber","version":"123.45.6"},"cpu":{"name":"arm64"},"os":{"name":"darwin","version":"24.5.0"},"runtime":{"name":"Node.js","version":"24.4.1"},"ci":{"name":"GitHub Actions","url":"https://github.com/cucumber-ltd/shouty.rb/actions/runs/154666429","buildNumber":"154666429","git":{"revision":"99684bcacf01d95875834d87903dcb072306c9ad","remote":"https://github.com/cucumber-ltd/shouty.rb.git","branch":"main"}}}}
2+
{"source":{"data":"Feature: Data Tables\n Data Tables can be placed underneath a step and will be passed as the last\n argument to the step definition.\n\n They can be used to represent richer data structures, and can be transformed to other data-types.\n\n Scenario: transposed table\n When the following table is transposed:\n | a | b |\n | 1 | 2 |\n Then it should be:\n | a | 1 |\n | b | 2 |\n","uri":"samples/data-tables/data-tables.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
3+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Data Tables","description":" Data Tables can be placed underneath a step and will be passed as the last\n argument to the step definition.\n\n They can be used to represent richer data structures, and can be transformed to other data-types.","children":[{"scenario":{"id":"6","tags":[],"location":{"line":7,"column":3},"keyword":"Scenario","name":"transposed table","description":"","steps":[{"id":"2","location":{"line":8,"column":5},"keyword":"When ","keywordType":"Action","text":"the following table is transposed:","dataTable":{"location":{"line":9,"column":7},"rows":[{"id":"0","location":{"line":9,"column":7},"cells":[{"location":{"line":9,"column":9},"value":"a"},{"location":{"line":9,"column":13},"value":"b"}]},{"id":"1","location":{"line":10,"column":7},"cells":[{"location":{"line":10,"column":9},"value":"1"},{"location":{"line":10,"column":13},"value":"2"}]}]}},{"id":"5","location":{"line":11,"column":5},"keyword":"Then ","keywordType":"Outcome","text":"it should be:","dataTable":{"location":{"line":12,"column":7},"rows":[{"id":"3","location":{"line":12,"column":7},"cells":[{"location":{"line":12,"column":9},"value":"a"},{"location":{"line":12,"column":13},"value":"1"}]},{"id":"4","location":{"line":13,"column":7},"cells":[{"location":{"line":13,"column":9},"value":"b"},{"location":{"line":13,"column":13},"value":"2"}]}]}}],"examples":[]}}]},"comments":[],"uri":"samples/data-tables/data-tables.feature"}}
4+
{"pickle":{"id":"9","uri":"samples/data-tables/data-tables.feature","astNodeIds":["6"],"tags":[],"name":"transposed table","language":"en","steps":[{"id":"7","text":"the following table is transposed:","type":"Action","argument":{"dataTable":{"rows":[{"cells":[{"value":"a"},{"value":"b"}]},{"cells":[{"value":"1"},{"value":"2"}]}]}},"astNodeIds":["2"]},{"id":"8","text":"it should be:","type":"Outcome","argument":{"dataTable":{"rows":[{"cells":[{"value":"a"},{"value":"1"}]},{"cells":[{"value":"b"},{"value":"2"}]}]}},"astNodeIds":["5"]}]}}
5+
{"stepDefinition":{"id":"10","pattern":{"type":"CUCUMBER_EXPRESSION","source":"the following table is transposed:"},"sourceReference":{"uri":"samples/data-tables/data-tables.ts","location":{"line":4}}}}
6+
{"stepDefinition":{"id":"11","pattern":{"type":"CUCUMBER_EXPRESSION","source":"it should be:"},"sourceReference":{"uri":"samples/data-tables/data-tables.ts","location":{"line":8}}}}
7+
{"testRunStarted":{"id":"12","timestamp":{"seconds":0,"nanos":0}}}
8+
{"testCase":{"id":"13","pickleId":"9","testSteps":[{"id":"14","pickleStepId":"7","stepDefinitionIds":["10"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]},{"id":"15","pickleStepId":"8","stepDefinitionIds":["11"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]}],"testRunStartedId":"12"}}
9+
{"testCaseStarted":{"id":"16","testCaseId":"13","timestamp":{"seconds":0,"nanos":1000000},"attempt":0}}
10+
{"testStepStarted":{"testCaseStartedId":"16","testStepId":"14","timestamp":{"seconds":0,"nanos":2000000}}}
11+
{"testStepFinished":{"testCaseStartedId":"16","testStepId":"14","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":3000000}}}
12+
{"testStepStarted":{"testCaseStartedId":"16","testStepId":"15","timestamp":{"seconds":0,"nanos":4000000}}}
13+
{"testStepFinished":{"testCaseStartedId":"16","testStepId":"15","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":5000000}}}
14+
{"testCaseFinished":{"testCaseStartedId":"16","timestamp":{"seconds":0,"nanos":6000000},"willBeRetried":false}}
15+
{"testRunFinished":{"testRunStartedId":"12","timestamp":{"seconds":0,"nanos":7000000},"success":true}}

testdata/compatibility-kit/data-tables.feature.ndjson.jvm.json renamed to testdata/compatibility-kit/data-tables.ndjson.jvm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"keyword": "When ",
2121
"line": 8,
2222
"match": {
23-
"location": "samples/data-tables/data-tables.feature.ts:5"
23+
"location": "samples/data-tables/data-tables.ts:4"
2424
},
2525
"name": "the following table is transposed:",
2626
"result": {
@@ -46,7 +46,7 @@
4646
"keyword": "Then ",
4747
"line": 11,
4848
"match": {
49-
"location": "samples/data-tables/data-tables.feature.ts:9"
49+
"location": "samples/data-tables/data-tables.ts:8"
5050
},
5151
"name": "it should be:",
5252
"result": {

testdata/compatibility-kit/empty.feature.ndjson

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)