Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions java/src/test/java/io/cucumber/query/QueryAcceptanceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ public class QueryAcceptanceTest {
static List<TestCase> acceptance() {

return Stream.of(
Paths.get("../testdata/attachments.feature.ndjson"),
Paths.get("../testdata/empty.feature.ndjson"),
Paths.get("../testdata/hooks.feature.ndjson"),
Paths.get("../testdata/minimal.feature.ndjson"),
Paths.get("../testdata/rules.feature.ndjson"),
Paths.get("../testdata/examples-tables.feature.ndjson")
Paths.get("../testdata/attachments.ndjson"),
Paths.get("../testdata/empty.ndjson"),
Paths.get("../testdata/hooks.ndjson"),
Paths.get("../testdata/minimal.ndjson"),
Paths.get("../testdata/rules.ndjson"),
Paths.get("../testdata/examples-tables.ndjson")
)
.map(TestCase::new)
.sorted(Comparator.comparing(testCase -> testCase.source))
Expand Down
8 changes: 4 additions & 4 deletions javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"homepage": "https://github.com/cucumber/query#readme",
"devDependencies": {
"@cucumber/compatibility-kit": "^19.0.0",
"@cucumber/compatibility-kit": "^20.0.0",
"@cucumber/fake-cucumber": "^18.0.0",
"@cucumber/gherkin": "^33.0.0",
"@cucumber/gherkin-streams": "^5.0.1",
Expand Down
61 changes: 0 additions & 61 deletions testdata/attachments.feature.ndjson

This file was deleted.

61 changes: 61 additions & 0 deletions testdata/attachments.ndjson

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,43 +29,43 @@
],
"findAttachmentsBy" : [
[
"36",
"37",
"50",
"application/octet-stream",
"IDENTITY"
],
[
"38",
"39",
"51",
"text/x.cucumber.log+plain",
"IDENTITY"
],
[
"40",
"41",
"52",
"text/x.cucumber.log+plain",
"IDENTITY"
],
[
"42",
"43",
"53",
"application/json",
"IDENTITY"
],
[
"44",
"45",
"54",
"text/plain",
"BASE64"
],
[
"46",
"47",
"55",
"application/pdf",
"BASE64"
],
[
"48",
"49",
"56",
"text/uri-list",
"IDENTITY"
Expand Down Expand Up @@ -196,44 +196,44 @@
],
"findStepDefinitionsBy" : [
[
"0"
"28"
],
[
"1"
"29"
],
[
"2"
"30"
],
[
"3"
"31"
],
[
"4"
"32"
],
[
"5"
"33"
],
[
"6"
"34"
]
],
"findUnambiguousStepDefinitionBy" : [
"0",
"1",
"2",
"3",
"4",
"5",
"6"
"28",
"29",
"30",
"31",
"32",
"33",
"34"
],
"findTestCaseBy" : [
"37",
"39",
"41",
"43",
"45",
"47",
"49"
"36",
"38",
"40",
"42",
"44",
"46",
"48"
],
"findTestCaseDurationBy" : [
{
Expand Down Expand Up @@ -294,74 +294,74 @@
"id" : "35"
},
"findTestStepByTestStepStarted" : [
"36",
"38",
"40",
"42",
"44",
"46",
"48"
"37",
"39",
"41",
"43",
"45",
"47",
"49"
],
"findTestStepByTestStepFinished" : [
"36",
"38",
"40",
"42",
"44",
"46",
"48"
"37",
"39",
"41",
"43",
"45",
"47",
"49"
],
"findTestStepsFinishedBy" : [
[
"36"
"37"
],
[
"38"
"39"
],
[
"40"
"41"
],
[
"42"
"43"
],
[
"44"
"45"
],
[
"46"
"47"
],
[
"48"
"49"
]
],
"findTestStepFinishedAndTestStepBy" : [
[
"36",
"36"
"37",
"37"
],
[
"38",
"38"
"39",
"39"
],
[
"40",
"40"
"41",
"41"
],
[
"42",
"42"
"43",
"43"
],
[
"44",
"44"
"45",
"45"
],
[
"46",
"46"
"47",
"47"
],
[
"48",
"48"
"49",
"49"
]
]
}
12 changes: 0 additions & 12 deletions testdata/cdata.feature.ndjson

This file was deleted.

12 changes: 12 additions & 0 deletions testdata/cdata.ndjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{"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"}}}}
{"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"}}
{"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"}}
{"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"]}]}}
{"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}}}}
{"testRunStarted":{"id":"5","timestamp":{"seconds":0,"nanos":0}}}
{"testCase":{"id":"6","pickleId":"3","testSteps":[{"id":"7","pickleStepId":"2","stepDefinitionIds":["4"],"stepMatchArgumentsLists":[{"stepMatchArguments":[{"group":{"start":7,"value":"42","children":[]},"parameterTypeName":"int"}]}]}],"testRunStartedId":"5"}}
{"testCaseStarted":{"id":"8","testCaseId":"6","timestamp":{"seconds":0,"nanos":1000000},"attempt":0}}
{"testStepStarted":{"testCaseStartedId":"8","testStepId":"7","timestamp":{"seconds":0,"nanos":2000000}}}
{"testStepFinished":{"testCaseStartedId":"8","testStepId":"7","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":3000000}}}
{"testCaseFinished":{"testCaseStartedId":"8","timestamp":{"seconds":0,"nanos":4000000},"willBeRetried":false}}
{"testRunFinished":{"testRunStartedId":"5","timestamp":{"seconds":0,"nanos":5000000},"success":true}}
15 changes: 0 additions & 15 deletions testdata/data-tables.feature.ndjson

This file was deleted.

15 changes: 15 additions & 0 deletions testdata/data-tables.ndjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{"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"}}}}
{"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"}}
{"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"}}
{"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"]}]}}
{"stepDefinition":{"id":"10","pattern":{"type":"CUCUMBER_EXPRESSION","source":"the following table is transposed:"},"sourceReference":{"uri":"samples/data-tables/data-tables.ts","location":{"line":4}}}}
{"stepDefinition":{"id":"11","pattern":{"type":"CUCUMBER_EXPRESSION","source":"it should be:"},"sourceReference":{"uri":"samples/data-tables/data-tables.ts","location":{"line":8}}}}
{"testRunStarted":{"id":"12","timestamp":{"seconds":0,"nanos":0}}}
{"testCase":{"id":"13","pickleId":"9","testSteps":[{"id":"14","pickleStepId":"7","stepDefinitionIds":["10"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]},{"id":"15","pickleStepId":"8","stepDefinitionIds":["11"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]}],"testRunStartedId":"12"}}
{"testCaseStarted":{"id":"16","testCaseId":"13","timestamp":{"seconds":0,"nanos":1000000},"attempt":0}}
{"testStepStarted":{"testCaseStartedId":"16","testStepId":"14","timestamp":{"seconds":0,"nanos":2000000}}}
{"testStepFinished":{"testCaseStartedId":"16","testStepId":"14","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":3000000}}}
{"testStepStarted":{"testCaseStartedId":"16","testStepId":"15","timestamp":{"seconds":0,"nanos":4000000}}}
{"testStepFinished":{"testCaseStartedId":"16","testStepId":"15","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":5000000}}}
{"testCaseFinished":{"testCaseStartedId":"16","timestamp":{"seconds":0,"nanos":6000000},"willBeRetried":false}}
{"testRunFinished":{"testRunStartedId":"12","timestamp":{"seconds":0,"nanos":7000000},"success":true}}
Loading
Loading