cucumber-compatibility-kit 30.0.0 → 31.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 +4 -4
- data/features/all-statuses/all-statuses.feature +1 -1
- data/features/all-statuses/all-statuses.ndjson +2 -2
- data/features/ambiguous/ambiguous.feature +1 -0
- data/features/ambiguous/ambiguous.ndjson +4 -4
- data/features/attachments/attachments.feature +6 -4
- data/features/attachments/attachments.ndjson +12 -12
- data/features/backgrounds/backgrounds.feature +2 -1
- data/features/backgrounds/backgrounds.ndjson +5 -5
- data/features/cdata/cdata.feature +1 -0
- data/features/cdata/cdata.ndjson +4 -4
- data/features/data-tables/data-tables.feature +1 -0
- data/features/data-tables/data-tables.ndjson +4 -4
- data/features/data-tables-doc-strings/data-tables-doc-strings.feature +17 -0
- data/features/data-tables-doc-strings/data-tables-doc-strings.ndjson +19 -0
- data/features/data-tables-with-expression/data-tables-with-expression.feature +8 -0
- data/features/data-tables-with-expression/data-tables-with-expression.ndjson +12 -0
- data/features/doc-strings/doc-strings.feature +17 -13
- data/features/doc-strings/doc-strings.ndjson +6 -6
- data/features/doc-strings-with-expression/doc-strings-with-expression.feature +10 -0
- data/features/doc-strings-with-expression/doc-strings-with-expression.ndjson +12 -0
- data/features/empty/empty.feature +1 -0
- data/features/empty/empty.ndjson +4 -4
- data/features/examples-tables/examples-tables.feature +1 -0
- data/features/examples-tables/examples-tables.ndjson +12 -12
- data/features/examples-tables-attachment/examples-tables-attachment.feature +1 -0
- data/features/examples-tables-attachment/examples-tables-attachment.ndjson +5 -5
- data/features/examples-tables-undefined/examples-tables-undefined.feature +2 -1
- data/features/examples-tables-undefined/examples-tables-undefined.ndjson +6 -6
- data/features/examples-tables-undefined-multiple/examples-tables-undefined-multiple.feature +1 -0
- data/features/examples-tables-undefined-multiple/examples-tables-undefined-multiple.ndjson +7 -7
- data/features/failedish-combinations/failedish-combinations.feature +1 -0
- data/features/failedish-combinations/failedish-combinations.ndjson +14 -14
- data/features/global-hooks/global-hooks.feature +1 -0
- data/features/global-hooks/global-hooks.ndjson +6 -6
- data/features/global-hooks-afterall-error/global-hooks-afterall-error.feature +1 -0
- data/features/global-hooks-afterall-error/global-hooks-afterall-error.ndjson +4 -4
- data/features/global-hooks-attachments/global-hooks-attachments.feature +1 -0
- data/features/global-hooks-attachments/global-hooks-attachments.ndjson +4 -4
- data/features/global-hooks-beforeall-error/global-hooks-beforeall-error.feature +1 -0
- data/features/global-hooks-beforeall-error/global-hooks-beforeall-error.ndjson +4 -4
- data/features/hooks/hooks.feature +1 -0
- data/features/hooks/hooks.ndjson +6 -6
- data/features/hooks-attachment/hooks-attachment.feature +1 -0
- data/features/hooks-attachment/hooks-attachment.ndjson +4 -4
- data/features/hooks-conditional/hooks-conditional.feature +1 -0
- data/features/hooks-conditional/hooks-conditional.ndjson +8 -8
- data/features/hooks-named/hooks-named.feature +1 -0
- data/features/hooks-named/hooks-named.ndjson +4 -4
- data/features/hooks-skipped/hooks-skipped.feature +6 -6
- data/features/hooks-skipped/hooks-skipped.ndjson +3 -3
- data/features/hooks-undefined/hooks-undefined.feature +1 -0
- data/features/hooks-undefined/hooks-undefined.ndjson +4 -4
- data/features/markdown/markdown.ndjson +1 -1
- data/features/minimal/minimal.feature +3 -3
- data/features/minimal/minimal.ndjson +3 -3
- data/features/multiple-features/multiple-features-1.feature +1 -1
- data/features/multiple-features/multiple-features-2.feature +1 -1
- data/features/multiple-features/multiple-features-3.feature +1 -1
- data/features/multiple-features/multiple-features.ndjson +4 -4
- data/features/multiple-features-reversed/multiple-features-reversed-1.feature +1 -1
- data/features/multiple-features-reversed/multiple-features-reversed-2.feature +1 -1
- data/features/multiple-features-reversed/multiple-features-reversed-3.feature +1 -1
- data/features/multiple-features-reversed/multiple-features-reversed.ndjson +4 -4
- data/features/parameter-types/parameter-types.feature +1 -0
- data/features/parameter-types/parameter-types.ndjson +4 -4
- data/features/pending/pending.feature +1 -0
- data/features/pending/pending.ndjson +6 -6
- data/features/pending-exception/pending-exception.feature +1 -0
- data/features/pending-exception/pending-exception.ndjson +5 -5
- data/features/regular-expression/regular-expression.feature +2 -2
- data/features/regular-expression/regular-expression.ndjson +2 -2
- data/features/retry/retry.feature +1 -0
- data/features/retry/retry.ndjson +13 -13
- data/features/retry-ambiguous/retry-ambiguous.feature +1 -0
- data/features/retry-ambiguous/retry-ambiguous.ndjson +4 -4
- data/features/retry-pending/retry-pending.feature +1 -0
- data/features/retry-pending/retry-pending.ndjson +4 -4
- data/features/retry-undefined/retry-undefined.feature +1 -0
- data/features/retry-undefined/retry-undefined.ndjson +4 -4
- data/features/rules/rules.feature +3 -0
- data/features/rules/rules.ndjson +6 -6
- data/features/rules-backgrounds/rules-backgrounds.feature +3 -1
- data/features/rules-backgrounds/rules-backgrounds.ndjson +5 -5
- data/features/skipped/skipped.ndjson +1 -1
- data/features/skipped-exception/skipped-exception.ndjson +1 -1
- data/features/skipped-failing-hook/skipped-failing-hook.ndjson +1 -1
- data/features/stack-traces/stack-traces.feature +1 -0
- data/features/stack-traces/stack-traces.ndjson +5 -5
- data/features/test-run-exception/test-run-exception.feature +1 -1
- data/features/test-run-exception/test-run-exception.ndjson +2 -2
- data/features/undefined/undefined.ndjson +1 -1
- data/features/undefined-multiple/undefined-multiple.ndjson +1 -1
- data/features/unknown-parameter-type/unknown-parameter-type.feature +1 -0
- data/features/unknown-parameter-type/unknown-parameter-type.ndjson +4 -4
- data/features/unused-steps/unused-steps.feature +1 -0
- data/features/unused-steps/unused-steps.ndjson +4 -4
- metadata +12 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 298f5948b366efb472719804c26f325f8c7da8eda8a0f27c2780a570a853cdc4
|
|
4
|
+
data.tar.gz: 1a1aa3e4017106813bfb9cb78fb98099e3df01e2792a433ce537813bda9a2cbf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e05bf0ee3cc31a9d3b2c8119655e6c4b5a42a9d650340ff6c9b4255253aa889cae23f8559e68e0f10652be7260955b2b9743a3743f4a2b442af2d48594b457b5
|
|
7
|
+
data.tar.gz: 2f49a9434166198c7da76a277c5cb4f79a9f3b09addaa10c4998810ff21b03af615aa6ce2eba251d8e96480fee33bdc642500caf144a391463b9ce3bc76bf06d
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{"meta":{"protocolVersion":"
|
|
2
|
-
{"source":{"data":"Feature: All statuses\n\n This sample exercises all the possible result statuses, which is useful\n for testing formatters and other tools.\n\n Scenario: Passing\n Given a step\n And a step\n And a step\n\n Scenario: Failing\n Given a step\n And a failing step\n And a step\n\n Scenario: Pending\n Given a step\n And a pending step\n And a step\n\n Scenario: Skipped\n Given a step\n And a skipped step\n And a step\n\n Scenario: Undefined\n Given a step\n And an undefined step\n And a step\n\n Scenario: Ambiguous\n Given a step\n And an ambiguous step\n And a step","uri":"samples/all-statuses/all-statuses.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
1
|
+
{"meta":{"protocolVersion":"35.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: All statuses\n\n This sample exercises all the possible result statuses, which is useful\n for testing formatters and other tools.\n\n Scenario: Passing\n Given a step\n And a step\n And a step\n\n Scenario: Failing\n Given a step\n And a failing step\n And a step\n\n Scenario: Pending\n Given a step\n And a pending step\n And a step\n\n Scenario: Skipped\n Given a step\n And a skipped step\n And a step\n\n Scenario: Undefined\n Given a step\n And an undefined step\n And a step\n\n Scenario: Ambiguous\n Given a step\n And an ambiguous step\n And a step\n","uri":"samples/all-statuses/all-statuses.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
3
|
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"All statuses","description":" This sample exercises all the possible result statuses, which is useful\n for testing formatters and other tools.","children":[{"scenario":{"id":"3","tags":[],"location":{"line":6,"column":3},"keyword":"Scenario","name":"Passing","description":"","steps":[{"id":"0","location":{"line":7,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"},{"id":"1","location":{"line":8,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a step"},{"id":"2","location":{"line":9,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a step"}],"examples":[]}},{"scenario":{"id":"7","tags":[],"location":{"line":11,"column":3},"keyword":"Scenario","name":"Failing","description":"","steps":[{"id":"4","location":{"line":12,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"},{"id":"5","location":{"line":13,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a failing step"},{"id":"6","location":{"line":14,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a step"}],"examples":[]}},{"scenario":{"id":"11","tags":[],"location":{"line":16,"column":3},"keyword":"Scenario","name":"Pending","description":"","steps":[{"id":"8","location":{"line":17,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"},{"id":"9","location":{"line":18,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a pending step"},{"id":"10","location":{"line":19,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a step"}],"examples":[]}},{"scenario":{"id":"15","tags":[],"location":{"line":21,"column":3},"keyword":"Scenario","name":"Skipped","description":"","steps":[{"id":"12","location":{"line":22,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"},{"id":"13","location":{"line":23,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a skipped step"},{"id":"14","location":{"line":24,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a step"}],"examples":[]}},{"scenario":{"id":"19","tags":[],"location":{"line":26,"column":3},"keyword":"Scenario","name":"Undefined","description":"","steps":[{"id":"16","location":{"line":27,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"},{"id":"17","location":{"line":28,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"an undefined step"},{"id":"18","location":{"line":29,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a step"}],"examples":[]}},{"scenario":{"id":"23","tags":[],"location":{"line":31,"column":3},"keyword":"Scenario","name":"Ambiguous","description":"","steps":[{"id":"20","location":{"line":32,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step"},{"id":"21","location":{"line":33,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"an ambiguous step"},{"id":"22","location":{"line":34,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"a step"}],"examples":[]}}]},"comments":[],"uri":"samples/all-statuses/all-statuses.feature"}}
|
|
4
4
|
{"pickle":{"id":"27","uri":"samples/all-statuses/all-statuses.feature","location":{"line":6,"column":3},"astNodeIds":["3"],"tags":[],"name":"Passing","language":"en","steps":[{"id":"24","text":"a step","type":"Context","astNodeIds":["0"]},{"id":"25","text":"a step","type":"Context","astNodeIds":["1"]},{"id":"26","text":"a step","type":"Context","astNodeIds":["2"]}]}}
|
|
5
5
|
{"pickle":{"id":"31","uri":"samples/all-statuses/all-statuses.feature","location":{"line":11,"column":3},"astNodeIds":["7"],"tags":[],"name":"Failing","language":"en","steps":[{"id":"28","text":"a step","type":"Context","astNodeIds":["4"]},{"id":"29","text":"a failing step","type":"Context","astNodeIds":["5"]},{"id":"30","text":"a step","type":"Context","astNodeIds":["6"]}]}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{"meta":{"protocolVersion":"
|
|
2
|
-
{"source":{"data":"Feature: Ambiguous steps\n Multiple step definitions that match a pickle step result in an AMBIGUOUS status, since Cucumber cannot determine\n which one to execute.\n\n Scenario: Multiple step definitions for a step\n Given a step with multiple definitions\n","uri":"samples/ambiguous/ambiguous.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
-
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Ambiguous steps","description":" Multiple step definitions that match a pickle step result in an AMBIGUOUS status, since Cucumber cannot determine\n which one to execute.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":
|
|
4
|
-
{"pickle":{"id":"3","uri":"samples/ambiguous/ambiguous.feature","location":{"line":
|
|
1
|
+
{"meta":{"protocolVersion":"35.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: Ambiguous steps\n\n Multiple step definitions that match a pickle step result in an AMBIGUOUS status, since Cucumber cannot determine\n which one to execute.\n\n Scenario: Multiple step definitions for a step\n Given a step with multiple definitions\n","uri":"samples/ambiguous/ambiguous.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Ambiguous steps","description":" Multiple step definitions that match a pickle step result in an AMBIGUOUS status, since Cucumber cannot determine\n which one to execute.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":6,"column":3},"keyword":"Scenario","name":"Multiple step definitions for a step","description":"","steps":[{"id":"0","location":{"line":7,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step with multiple definitions"}],"examples":[]}}]},"comments":[],"uri":"samples/ambiguous/ambiguous.feature"}}
|
|
4
|
+
{"pickle":{"id":"3","uri":"samples/ambiguous/ambiguous.feature","location":{"line":6,"column":3},"astNodeIds":["1"],"tags":[],"name":"Multiple step definitions for a step","language":"en","steps":[{"id":"2","text":"a step with multiple definitions","type":"Context","astNodeIds":["0"]}]}}
|
|
5
5
|
{"stepDefinition":{"id":"4","pattern":{"type":"REGULAR_EXPRESSION","source":"^a (.*?) with (.*?)$"},"sourceReference":{"uri":"samples/ambiguous/ambiguous.ts","location":{"line":3}}}}
|
|
6
6
|
{"stepDefinition":{"id":"5","pattern":{"type":"REGULAR_EXPRESSION","source":"^a step with (.*?)$"},"sourceReference":{"uri":"samples/ambiguous/ambiguous.ts","location":{"line":7}}}}
|
|
7
7
|
{"testRunStarted":{"id":"6","timestamp":{"seconds":0,"nanos":0}}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Feature: Attachments
|
|
2
|
+
|
|
2
3
|
It is sometimes useful to take a screenshot while a scenario runs or capture some logs.
|
|
3
4
|
|
|
4
5
|
Cucumber lets you `attach` arbitrary files during execution, and you can
|
|
@@ -9,6 +10,7 @@ Feature: Attachments
|
|
|
9
10
|
Attachments must have a body and a content type.
|
|
10
11
|
|
|
11
12
|
Scenario: Strings can be attached with a media type
|
|
13
|
+
|
|
12
14
|
Beware that some formatters such as the html formatter use the media type
|
|
13
15
|
to determine how to display an attachment.
|
|
14
16
|
|
|
@@ -21,10 +23,10 @@ Feature: Attachments
|
|
|
21
23
|
When text with ANSI escapes is logged
|
|
22
24
|
|
|
23
25
|
Scenario: Log JSON
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
When the following string is attached as "application/json":
|
|
27
|
+
```
|
|
28
|
+
{"message": "The <b>big</b> question", "foo": "bar"}
|
|
29
|
+
```
|
|
28
30
|
|
|
29
31
|
Scenario: Byte arrays are base64-encoded regardless of media type
|
|
30
32
|
When an array with 10 bytes is attached as "text/plain"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{"meta":{"protocolVersion":"
|
|
2
|
-
{"source":{"data":"Feature: Attachments\n It is sometimes useful to take a screenshot while a scenario runs or capture some logs.\n\n Cucumber lets you `attach` arbitrary files during execution, and you can\n specify a content type for the contents.\n\n Formatters can then render these attachments in reports.\n\n Attachments must have a body and a content type.\n\n Scenario: Strings can be attached with a media type\n Beware that some formatters such as the html formatter use the media type\n to determine how to display an attachment.\n\n When the string \"hello\" is attached as \"application/octet-stream\"\n\n Scenario: Log text\n When the string \"hello\" is logged\n\n Scenario: Log ANSI coloured text\n When text with ANSI escapes is logged\n\n Scenario: Log JSON\n
|
|
3
|
-
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Attachments","description":" It is sometimes useful to take a screenshot while a scenario runs or capture some logs.\n\n Cucumber lets you `attach` arbitrary files during execution, and you can\n specify a content type for the contents.\n\n Formatters can then render these attachments in reports.\n\n Attachments must have a body and a content type.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":
|
|
4
|
-
{"pickle":{"id":"17","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
5
|
-
{"pickle":{"id":"19","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
6
|
-
{"pickle":{"id":"21","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
7
|
-
{"pickle":{"id":"23","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
8
|
-
{"pickle":{"id":"25","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
9
|
-
{"pickle":{"id":"27","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
10
|
-
{"pickle":{"id":"29","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
11
|
-
{"pickle":{"id":"31","uri":"samples/attachments/attachments.feature","location":{"line":
|
|
1
|
+
{"meta":{"protocolVersion":"35.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: Attachments\n\n It is sometimes useful to take a screenshot while a scenario runs or capture some logs.\n\n Cucumber lets you `attach` arbitrary files during execution, and you can\n specify a content type for the contents.\n\n Formatters can then render these attachments in reports.\n\n Attachments must have a body and a content type.\n\n Scenario: Strings can be attached with a media type\n\n Beware that some formatters such as the html formatter use the media type\n to determine how to display an attachment.\n\n When the string \"hello\" is attached as \"application/octet-stream\"\n\n Scenario: Log text\n When the string \"hello\" is logged\n\n Scenario: Log ANSI coloured text\n When text with ANSI escapes is logged\n\n Scenario: Log JSON\n When the following string is attached as \"application/json\":\n ```\n {\"message\": \"The <b>big</b> question\", \"foo\": \"bar\"}\n ```\n\n Scenario: Byte arrays are base64-encoded regardless of media type\n When an array with 10 bytes is attached as \"text/plain\"\n\n Scenario: Attaching PDFs with a different filename\n When a PDF document is attached and renamed\n\n Scenario: Attaching URIs\n When a link to \"https://cucumber.io\" is attached\n\n Scenario: Attaching during a failed step\n When the string \"hello\" is attached as \"application/octet-stream\" before a failure\n","uri":"samples/attachments/attachments.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Attachments","description":" It is sometimes useful to take a screenshot while a scenario runs or capture some logs.\n\n Cucumber lets you `attach` arbitrary files during execution, and you can\n specify a content type for the contents.\n\n Formatters can then render these attachments in reports.\n\n Attachments must have a body and a content type.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":12,"column":3},"keyword":"Scenario","name":"Strings can be attached with a media type","description":" Beware that some formatters such as the html formatter use the media type\n to determine how to display an attachment.","steps":[{"id":"0","location":{"line":17,"column":5},"keyword":"When ","keywordType":"Action","text":"the string \"hello\" is attached as \"application/octet-stream\""}],"examples":[]}},{"scenario":{"id":"3","tags":[],"location":{"line":19,"column":3},"keyword":"Scenario","name":"Log text","description":"","steps":[{"id":"2","location":{"line":20,"column":5},"keyword":"When ","keywordType":"Action","text":"the string \"hello\" is logged"}],"examples":[]}},{"scenario":{"id":"5","tags":[],"location":{"line":22,"column":3},"keyword":"Scenario","name":"Log ANSI coloured text","description":"","steps":[{"id":"4","location":{"line":23,"column":5},"keyword":"When ","keywordType":"Action","text":"text with ANSI escapes is logged"}],"examples":[]}},{"scenario":{"id":"7","tags":[],"location":{"line":25,"column":3},"keyword":"Scenario","name":"Log JSON","description":"","steps":[{"id":"6","location":{"line":26,"column":5},"keyword":"When ","keywordType":"Action","text":"the following string is attached as \"application/json\":","docString":{"location":{"line":27,"column":7},"content":"{\"message\": \"The <b>big</b> question\", \"foo\": \"bar\"}","delimiter":"```"}}],"examples":[]}},{"scenario":{"id":"9","tags":[],"location":{"line":31,"column":3},"keyword":"Scenario","name":"Byte arrays are base64-encoded regardless of media type","description":"","steps":[{"id":"8","location":{"line":32,"column":5},"keyword":"When ","keywordType":"Action","text":"an array with 10 bytes is attached as \"text/plain\""}],"examples":[]}},{"scenario":{"id":"11","tags":[],"location":{"line":34,"column":3},"keyword":"Scenario","name":"Attaching PDFs with a different filename","description":"","steps":[{"id":"10","location":{"line":35,"column":5},"keyword":"When ","keywordType":"Action","text":"a PDF document is attached and renamed"}],"examples":[]}},{"scenario":{"id":"13","tags":[],"location":{"line":37,"column":3},"keyword":"Scenario","name":"Attaching URIs","description":"","steps":[{"id":"12","location":{"line":38,"column":5},"keyword":"When ","keywordType":"Action","text":"a link to \"https://cucumber.io\" is attached"}],"examples":[]}},{"scenario":{"id":"15","tags":[],"location":{"line":40,"column":3},"keyword":"Scenario","name":"Attaching during a failed step","description":"","steps":[{"id":"14","location":{"line":41,"column":5},"keyword":"When ","keywordType":"Action","text":"the string \"hello\" is attached as \"application/octet-stream\" before a failure"}],"examples":[]}}]},"comments":[],"uri":"samples/attachments/attachments.feature"}}
|
|
4
|
+
{"pickle":{"id":"17","uri":"samples/attachments/attachments.feature","location":{"line":12,"column":3},"astNodeIds":["1"],"tags":[],"name":"Strings can be attached with a media type","language":"en","steps":[{"id":"16","text":"the string \"hello\" is attached as \"application/octet-stream\"","type":"Action","astNodeIds":["0"]}]}}
|
|
5
|
+
{"pickle":{"id":"19","uri":"samples/attachments/attachments.feature","location":{"line":19,"column":3},"astNodeIds":["3"],"tags":[],"name":"Log text","language":"en","steps":[{"id":"18","text":"the string \"hello\" is logged","type":"Action","astNodeIds":["2"]}]}}
|
|
6
|
+
{"pickle":{"id":"21","uri":"samples/attachments/attachments.feature","location":{"line":22,"column":3},"astNodeIds":["5"],"tags":[],"name":"Log ANSI coloured text","language":"en","steps":[{"id":"20","text":"text with ANSI escapes is logged","type":"Action","astNodeIds":["4"]}]}}
|
|
7
|
+
{"pickle":{"id":"23","uri":"samples/attachments/attachments.feature","location":{"line":25,"column":3},"astNodeIds":["7"],"tags":[],"name":"Log JSON","language":"en","steps":[{"id":"22","text":"the following string is attached as \"application/json\":","type":"Action","argument":{"docString":{"content":"{\"message\": \"The <b>big</b> question\", \"foo\": \"bar\"}"}},"astNodeIds":["6"]}]}}
|
|
8
|
+
{"pickle":{"id":"25","uri":"samples/attachments/attachments.feature","location":{"line":31,"column":3},"astNodeIds":["9"],"tags":[],"name":"Byte arrays are base64-encoded regardless of media type","language":"en","steps":[{"id":"24","text":"an array with 10 bytes is attached as \"text/plain\"","type":"Action","astNodeIds":["8"]}]}}
|
|
9
|
+
{"pickle":{"id":"27","uri":"samples/attachments/attachments.feature","location":{"line":34,"column":3},"astNodeIds":["11"],"tags":[],"name":"Attaching PDFs with a different filename","language":"en","steps":[{"id":"26","text":"a PDF document is attached and renamed","type":"Action","astNodeIds":["10"]}]}}
|
|
10
|
+
{"pickle":{"id":"29","uri":"samples/attachments/attachments.feature","location":{"line":37,"column":3},"astNodeIds":["13"],"tags":[],"name":"Attaching URIs","language":"en","steps":[{"id":"28","text":"a link to \"https://cucumber.io\" is attached","type":"Action","astNodeIds":["12"]}]}}
|
|
11
|
+
{"pickle":{"id":"31","uri":"samples/attachments/attachments.feature","location":{"line":40,"column":3},"astNodeIds":["15"],"tags":[],"name":"Attaching during a failed step","language":"en","steps":[{"id":"30","text":"the string \"hello\" is attached as \"application/octet-stream\" before a failure","type":"Action","astNodeIds":["14"]}]}}
|
|
12
12
|
{"stepDefinition":{"id":"32","pattern":{"type":"CUCUMBER_EXPRESSION","source":"the string {string} is attached as {string}"},"sourceReference":{"uri":"samples/attachments/attachments.ts","location":{"line":4}}}}
|
|
13
13
|
{"stepDefinition":{"id":"33","pattern":{"type":"CUCUMBER_EXPRESSION","source":"the string {string} is logged"},"sourceReference":{"uri":"samples/attachments/attachments.ts","location":{"line":11}}}}
|
|
14
14
|
{"stepDefinition":{"id":"34","pattern":{"type":"CUCUMBER_EXPRESSION","source":"text with ANSI escapes is logged"},"sourceReference":{"uri":"samples/attachments/attachments.ts","location":{"line":15}}}}
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
{"testCaseStarted":{"id":"64","testCaseId":"55","timestamp":{"seconds":0,"nanos":36000000},"attempt":0}}
|
|
65
65
|
{"testStepStarted":{"testCaseStartedId":"64","testStepId":"56","timestamp":{"seconds":0,"nanos":37000000}}}
|
|
66
66
|
{"attachment":{"testCaseStartedId":"64","testStepId":"56","body":"hello","contentEncoding":"IDENTITY","mediaType":"application/octet-stream","timestamp":{"seconds":0,"nanos":38000000}}}
|
|
67
|
-
{"testStepFinished":{"testCaseStartedId":"64","testStepId":"56","testStepResult":{"message":"whoops","exception":{"type":"Error","message":"whoops","stackTrace":"Error: whoops\nsamples/attachments/attachments.feature:
|
|
67
|
+
{"testStepFinished":{"testCaseStartedId":"64","testStepId":"56","testStepResult":{"message":"whoops","exception":{"type":"Error","message":"whoops","stackTrace":"Error: whoops\nsamples/attachments/attachments.feature:41"},"status":"FAILED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":39000000}}}
|
|
68
68
|
{"testCaseFinished":{"testCaseStartedId":"64","timestamp":{"seconds":0,"nanos":40000000},"willBeRetried":false}}
|
|
69
69
|
{"testRunFinished":{"testRunStartedId":"40","timestamp":{"seconds":0,"nanos":41000000},"success":false}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Feature: Backgrounds
|
|
2
|
+
|
|
2
3
|
Though not recommended, Backgrounds can be used to share context steps between Scenarios. The Background steps
|
|
3
4
|
are prepended to the steps in each Scenario when they are compiled to Pickles. Only one Background at the Feature
|
|
4
5
|
level is supported.
|
|
@@ -14,4 +15,4 @@ Feature: Backgrounds
|
|
|
14
15
|
|
|
15
16
|
Scenario: another scenario
|
|
16
17
|
When an action
|
|
17
|
-
Then an outcome
|
|
18
|
+
Then an outcome
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{"meta":{"protocolVersion":"
|
|
2
|
-
{"source":{"data":"Feature: Backgrounds\n Though not recommended, Backgrounds can be used to share context steps between Scenarios. The Background steps\n are prepended to the steps in each Scenario when they are compiled to Pickles. Only one Background at the Feature\n level is supported.\n\n Background:\n Given an order for \"eggs\"\n And an order for \"milk\"\n And an order for \"bread\"\n\n Scenario: one scenario\n When an action\n Then an outcome\n\n Scenario: another scenario\n When an action\n Then an outcome","uri":"samples/backgrounds/backgrounds.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
-
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Backgrounds","description":" Though not recommended, Backgrounds can be used to share context steps between Scenarios. The Background steps\n are prepended to the steps in each Scenario when they are compiled to Pickles. Only one Background at the Feature\n level is supported.","children":[{"background":{"id":"3","location":{"line":
|
|
4
|
-
{"pickle":{"id":"15","uri":"samples/backgrounds/backgrounds.feature","location":{"line":
|
|
5
|
-
{"pickle":{"id":"21","uri":"samples/backgrounds/backgrounds.feature","location":{"line":
|
|
1
|
+
{"meta":{"protocolVersion":"35.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: Backgrounds\n\n Though not recommended, Backgrounds can be used to share context steps between Scenarios. The Background steps\n are prepended to the steps in each Scenario when they are compiled to Pickles. Only one Background at the Feature\n level is supported.\n\n Background:\n Given an order for \"eggs\"\n And an order for \"milk\"\n And an order for \"bread\"\n\n Scenario: one scenario\n When an action\n Then an outcome\n\n Scenario: another scenario\n When an action\n Then an outcome\n","uri":"samples/backgrounds/backgrounds.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Backgrounds","description":" Though not recommended, Backgrounds can be used to share context steps between Scenarios. The Background steps\n are prepended to the steps in each Scenario when they are compiled to Pickles. Only one Background at the Feature\n level is supported.","children":[{"background":{"id":"3","location":{"line":7,"column":3},"keyword":"Background","name":"","description":"","steps":[{"id":"0","location":{"line":8,"column":5},"keyword":"Given ","keywordType":"Context","text":"an order for \"eggs\""},{"id":"1","location":{"line":9,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"an order for \"milk\""},{"id":"2","location":{"line":10,"column":5},"keyword":"And ","keywordType":"Conjunction","text":"an order for \"bread\""}]}},{"scenario":{"id":"6","tags":[],"location":{"line":12,"column":3},"keyword":"Scenario","name":"one scenario","description":"","steps":[{"id":"4","location":{"line":13,"column":5},"keyword":"When ","keywordType":"Action","text":"an action"},{"id":"5","location":{"line":14,"column":5},"keyword":"Then ","keywordType":"Outcome","text":"an outcome"}],"examples":[]}},{"scenario":{"id":"9","tags":[],"location":{"line":16,"column":3},"keyword":"Scenario","name":"another scenario","description":"","steps":[{"id":"7","location":{"line":17,"column":5},"keyword":"When ","keywordType":"Action","text":"an action"},{"id":"8","location":{"line":18,"column":5},"keyword":"Then ","keywordType":"Outcome","text":"an outcome"}],"examples":[]}}]},"comments":[],"uri":"samples/backgrounds/backgrounds.feature"}}
|
|
4
|
+
{"pickle":{"id":"15","uri":"samples/backgrounds/backgrounds.feature","location":{"line":12,"column":3},"astNodeIds":["6"],"tags":[],"name":"one scenario","language":"en","steps":[{"id":"10","text":"an order for \"eggs\"","type":"Context","astNodeIds":["0"]},{"id":"11","text":"an order for \"milk\"","type":"Context","astNodeIds":["1"]},{"id":"12","text":"an order for \"bread\"","type":"Context","astNodeIds":["2"]},{"id":"13","text":"an action","type":"Action","astNodeIds":["4"]},{"id":"14","text":"an outcome","type":"Outcome","astNodeIds":["5"]}]}}
|
|
5
|
+
{"pickle":{"id":"21","uri":"samples/backgrounds/backgrounds.feature","location":{"line":16,"column":3},"astNodeIds":["9"],"tags":[],"name":"another scenario","language":"en","steps":[{"id":"16","text":"an order for \"eggs\"","type":"Context","astNodeIds":["0"]},{"id":"17","text":"an order for \"milk\"","type":"Context","astNodeIds":["1"]},{"id":"18","text":"an order for \"bread\"","type":"Context","astNodeIds":["2"]},{"id":"19","text":"an action","type":"Action","astNodeIds":["7"]},{"id":"20","text":"an outcome","type":"Outcome","astNodeIds":["8"]}]}}
|
|
6
6
|
{"stepDefinition":{"id":"22","pattern":{"type":"CUCUMBER_EXPRESSION","source":"an order for {string}"},"sourceReference":{"uri":"samples/backgrounds/backgrounds.ts","location":{"line":3}}}}
|
|
7
7
|
{"stepDefinition":{"id":"23","pattern":{"type":"CUCUMBER_EXPRESSION","source":"an action"},"sourceReference":{"uri":"samples/backgrounds/backgrounds.ts","location":{"line":7}}}}
|
|
8
8
|
{"stepDefinition":{"id":"24","pattern":{"type":"CUCUMBER_EXPRESSION","source":"an outcome"},"sourceReference":{"uri":"samples/backgrounds/backgrounds.ts","location":{"line":11}}}}
|
data/features/cdata/cdata.ndjson
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{"meta":{"protocolVersion":"
|
|
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
|
-
{"pickle":{"id":"3","uri":"samples/cdata/cdata.feature","location":{"line":
|
|
1
|
+
{"meta":{"protocolVersion":"35.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\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":5,"column":3},"keyword":"Scenario","name":"cdata","description":"","steps":[{"id":"0","location":{"line":6,"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","location":{"line":5,"column":3},"astNodeIds":["1"],"tags":[],"name":"cdata","language":"en","steps":[{"id":"2","text":"I have 42 <![CDATA[cukes]]> in my belly","type":"Context","astNodeIds":["0"]}]}}
|
|
5
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
6
|
{"testRunStarted":{"id":"5","timestamp":{"seconds":0,"nanos":0}}}
|
|
7
7
|
{"testCase":{"id":"6","pickleId":"3","testSteps":[{"id":"7","pickleStepId":"2","stepDefinitionIds":["4"],"stepMatchArgumentsLists":[{"stepMatchArguments":[{"group":{"start":7,"value":"42"},"parameterTypeName":"int"}]}]}],"testRunStartedId":"5"}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{"meta":{"protocolVersion":"
|
|
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":
|
|
4
|
-
{"pickle":{"id":"9","uri":"samples/data-tables/data-tables.feature","location":{"line":
|
|
1
|
+
{"meta":{"protocolVersion":"35.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\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":8,"column":3},"keyword":"Scenario","name":"transposed table","description":"","steps":[{"id":"2","location":{"line":9,"column":5},"keyword":"When ","keywordType":"Action","text":"the following table is transposed:","dataTable":{"location":{"line":10,"column":7},"rows":[{"id":"0","location":{"line":10,"column":7},"cells":[{"location":{"line":10,"column":9},"value":"a"},{"location":{"line":10,"column":13},"value":"b"}]},{"id":"1","location":{"line":11,"column":7},"cells":[{"location":{"line":11,"column":9},"value":"1"},{"location":{"line":11,"column":13},"value":"2"}]}]}},{"id":"5","location":{"line":12,"column":5},"keyword":"Then ","keywordType":"Outcome","text":"it should be:","dataTable":{"location":{"line":13,"column":7},"rows":[{"id":"3","location":{"line":13,"column":7},"cells":[{"location":{"line":13,"column":9},"value":"a"},{"location":{"line":13,"column":13},"value":"1"}]},{"id":"4","location":{"line":14,"column":7},"cells":[{"location":{"line":14,"column":9},"value":"b"},{"location":{"line":14,"column":13},"value":"2"}]}]}}],"examples":[]}}]},"comments":[],"uri":"samples/data-tables/data-tables.feature"}}
|
|
4
|
+
{"pickle":{"id":"9","uri":"samples/data-tables/data-tables.feature","location":{"line":8,"column":3},"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
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
6
|
{"stepDefinition":{"id":"11","pattern":{"type":"CUCUMBER_EXPRESSION","source":"it should be:"},"sourceReference":{"uri":"samples/data-tables/data-tables.ts","location":{"line":8}}}}
|
|
7
7
|
{"testRunStarted":{"id":"12","timestamp":{"seconds":0,"nanos":0}}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Feature: Data Tables and Doc Strings
|
|
2
|
+
|
|
3
|
+
Steps can have both Data Table and Doc String as arguments at the same time
|
|
4
|
+
|
|
5
|
+
Scenario: DataTable followed by DocString
|
|
6
|
+
Given a step with a data table a doc string
|
|
7
|
+
| hello |
|
|
8
|
+
"""
|
|
9
|
+
world
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
Scenario: DocString followed by DataTable
|
|
13
|
+
Given a step with a doc string a data table
|
|
14
|
+
"""
|
|
15
|
+
hello
|
|
16
|
+
"""
|
|
17
|
+
| world |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{"meta":{"protocolVersion":"35.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 and Doc Strings\n\n Steps can have both Data Table and Doc String as arguments at the same time\n\n Scenario: DataTable followed by DocString\n Given a step with a data table a doc string\n | hello |\n \"\"\"\n world\n \"\"\"\n\n Scenario: DocString followed by DataTable\n Given a step with a doc string a data table\n \"\"\"\n hello\n \"\"\"\n | world |\n","uri":"samples/data-tables-doc-strings/data-tables-doc-strings.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Data Tables and Doc Strings","description":" Steps can have both Data Table and Doc String as arguments at the same time","children":[{"scenario":{"id":"2","tags":[],"location":{"line":5,"column":3},"keyword":"Scenario","name":"DataTable followed by DocString","description":"","steps":[{"id":"1","location":{"line":6,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step with a data table a doc string","dataTable":{"location":{"line":7,"column":7},"rows":[{"id":"0","location":{"line":7,"column":7},"cells":[{"location":{"line":7,"column":9},"value":"hello"}]}]},"docString":{"location":{"line":8,"column":7},"content":"world","delimiter":"\"\"\""}}],"examples":[]}},{"scenario":{"id":"5","tags":[],"location":{"line":12,"column":3},"keyword":"Scenario","name":"DocString followed by DataTable","description":"","steps":[{"id":"4","location":{"line":13,"column":5},"keyword":"Given ","keywordType":"Context","text":"a step with a doc string a data table","dataTable":{"location":{"line":17,"column":7},"rows":[{"id":"3","location":{"line":17,"column":7},"cells":[{"location":{"line":17,"column":9},"value":"world"}]}]},"docString":{"location":{"line":14,"column":7},"content":"hello","delimiter":"\"\"\""}}],"examples":[]}}]},"comments":[],"uri":"samples/data-tables-doc-strings/data-tables-doc-strings.feature"}}
|
|
4
|
+
{"pickle":{"id":"7","uri":"samples/data-tables-doc-strings/data-tables-doc-strings.feature","location":{"line":5,"column":3},"astNodeIds":["2"],"tags":[],"name":"DataTable followed by DocString","language":"en","steps":[{"id":"6","text":"a step with a data table a doc string","type":"Context","argument":{"docString":{"argumentIndex":2,"content":"world"},"dataTable":{"argumentIndex":1,"rows":[{"cells":[{"value":"hello"}]}]}},"astNodeIds":["1"]}]}}
|
|
5
|
+
{"pickle":{"id":"9","uri":"samples/data-tables-doc-strings/data-tables-doc-strings.feature","location":{"line":12,"column":3},"astNodeIds":["5"],"tags":[],"name":"DocString followed by DataTable","language":"en","steps":[{"id":"8","text":"a step with a doc string a data table","type":"Context","argument":{"docString":{"argumentIndex":1,"content":"hello"},"dataTable":{"argumentIndex":2,"rows":[{"cells":[{"value":"world"}]}]}},"astNodeIds":["4"]}]}}
|
|
6
|
+
{"stepDefinition":{"id":"10","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a step with a data table a doc string"},"sourceReference":{"uri":"samples/data-tables-doc-strings/data-tables-doc-strings.ts","location":{"line":4}}}}
|
|
7
|
+
{"stepDefinition":{"id":"11","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a step with a doc string a data table"},"sourceReference":{"uri":"samples/data-tables-doc-strings/data-tables-doc-strings.ts","location":{"line":9}}}}
|
|
8
|
+
{"testRunStarted":{"id":"12","timestamp":{"seconds":0,"nanos":0}}}
|
|
9
|
+
{"testCase":{"id":"13","pickleId":"7","testSteps":[{"id":"14","pickleStepId":"6","stepDefinitionIds":["10"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]}],"testRunStartedId":"12"}}
|
|
10
|
+
{"testCase":{"id":"15","pickleId":"9","testSteps":[{"id":"16","pickleStepId":"8","stepDefinitionIds":["11"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]}],"testRunStartedId":"12"}}
|
|
11
|
+
{"testCaseStarted":{"id":"17","testCaseId":"13","timestamp":{"seconds":0,"nanos":1000000},"attempt":0}}
|
|
12
|
+
{"testStepStarted":{"testCaseStartedId":"17","testStepId":"14","timestamp":{"seconds":0,"nanos":2000000}}}
|
|
13
|
+
{"testStepFinished":{"testCaseStartedId":"17","testStepId":"14","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":3000000}}}
|
|
14
|
+
{"testCaseFinished":{"testCaseStartedId":"17","timestamp":{"seconds":0,"nanos":4000000},"willBeRetried":false}}
|
|
15
|
+
{"testCaseStarted":{"id":"18","testCaseId":"15","timestamp":{"seconds":0,"nanos":5000000},"attempt":0}}
|
|
16
|
+
{"testStepStarted":{"testCaseStartedId":"18","testStepId":"16","timestamp":{"seconds":0,"nanos":6000000}}}
|
|
17
|
+
{"testStepFinished":{"testCaseStartedId":"18","testStepId":"16","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":7000000}}}
|
|
18
|
+
{"testCaseFinished":{"testCaseStartedId":"18","timestamp":{"seconds":0,"nanos":8000000},"willBeRetried":false}}
|
|
19
|
+
{"testRunFinished":{"testRunStartedId":"12","timestamp":{"seconds":0,"nanos":9000000},"success":true}}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Feature: Data Tables
|
|
2
|
+
|
|
3
|
+
Data Tables can be combined with Cucumber expressions. The arguments from the
|
|
4
|
+
Cucumber expression are provided before the data table.
|
|
5
|
+
|
|
6
|
+
Scenario: a table with a Cucumber expression
|
|
7
|
+
Given a "Cucumber" with a table
|
|
8
|
+
| Species | Cucumis sativus |
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"meta":{"protocolVersion":"35.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\n Data Tables can be combined with Cucumber expressions. The arguments from the\n Cucumber expression are provided before the data table.\n\n Scenario: a table with a Cucumber expression\n Given a \"Cucumber\" with a table\n | Species | Cucumis sativus |\n","uri":"samples/data-tables-with-expression/data-tables-with-expression.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 combined with Cucumber expressions. The arguments from the\n Cucumber expression are provided before the data table.","children":[{"scenario":{"id":"2","tags":[],"location":{"line":6,"column":3},"keyword":"Scenario","name":"a table with a Cucumber expression","description":"","steps":[{"id":"1","location":{"line":7,"column":5},"keyword":"Given ","keywordType":"Context","text":"a \"Cucumber\" with a table","dataTable":{"location":{"line":8,"column":7},"rows":[{"id":"0","location":{"line":8,"column":7},"cells":[{"location":{"line":8,"column":9},"value":"Species"},{"location":{"line":8,"column":19},"value":"Cucumis sativus"}]}]}}],"examples":[]}}]},"comments":[],"uri":"samples/data-tables-with-expression/data-tables-with-expression.feature"}}
|
|
4
|
+
{"pickle":{"id":"4","uri":"samples/data-tables-with-expression/data-tables-with-expression.feature","location":{"line":6,"column":3},"astNodeIds":["2"],"tags":[],"name":"a table with a Cucumber expression","language":"en","steps":[{"id":"3","text":"a \"Cucumber\" with a table","type":"Context","argument":{"dataTable":{"rows":[{"cells":[{"value":"Species"},{"value":"Cucumis sativus"}]}]}},"astNodeIds":["1"]}]}}
|
|
5
|
+
{"stepDefinition":{"id":"5","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a {string} with a table"},"sourceReference":{"uri":"samples/data-tables-with-expression/data-tables-with-expression.ts","location":{"line":4}}}}
|
|
6
|
+
{"testRunStarted":{"id":"6","timestamp":{"seconds":0,"nanos":0}}}
|
|
7
|
+
{"testCase":{"id":"7","pickleId":"4","testSteps":[{"id":"8","pickleStepId":"3","stepDefinitionIds":["5"],"stepMatchArgumentsLists":[{"stepMatchArguments":[{"group":{"start":2,"value":"\"Cucumber\"","children":[{"start":3,"value":"Cucumber","children":[{}]},{"children":[{}]}]},"parameterTypeName":"string"}]}]}],"testRunStartedId":"6"}}
|
|
8
|
+
{"testCaseStarted":{"id":"9","testCaseId":"7","timestamp":{"seconds":0,"nanos":1000000},"attempt":0}}
|
|
9
|
+
{"testStepStarted":{"testCaseStartedId":"9","testStepId":"8","timestamp":{"seconds":0,"nanos":2000000}}}
|
|
10
|
+
{"testStepFinished":{"testCaseStartedId":"9","testStepId":"8","testStepResult":{"status":"PASSED","duration":{"seconds":0,"nanos":1000000}},"timestamp":{"seconds":0,"nanos":3000000}}}
|
|
11
|
+
{"testCaseFinished":{"testCaseStartedId":"9","timestamp":{"seconds":0,"nanos":4000000},"willBeRetried":false}}
|
|
12
|
+
{"testRunFinished":{"testRunStartedId":"6","timestamp":{"seconds":0,"nanos":5000000},"success":true}}
|
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
Feature: Doc strings
|
|
2
|
+
|
|
2
3
|
Doc strings are a way to supply long, sometimes multi-line, text to a step. They are passed as the last argument
|
|
3
4
|
to the step definition.
|
|
4
5
|
|
|
5
6
|
Scenario: a doc string with standard delimiter
|
|
7
|
+
|
|
6
8
|
Three double quotes above and below are the standard delimiter for doc strings.
|
|
7
9
|
|
|
8
10
|
Given a doc string:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
"""
|
|
12
|
+
Here is some content
|
|
13
|
+
And some more on another line
|
|
14
|
+
"""
|
|
13
15
|
|
|
14
16
|
Scenario: a doc string with backticks delimiter
|
|
17
|
+
|
|
15
18
|
Backticks can also be used, like Markdown, but are less widely supported by editors.
|
|
16
19
|
|
|
17
20
|
Given a doc string:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
```
|
|
22
|
+
Here is some content
|
|
23
|
+
And some more on another line
|
|
24
|
+
```
|
|
22
25
|
|
|
23
26
|
Scenario: a doc string with media type
|
|
27
|
+
|
|
24
28
|
The media type can be optionally specified too, following the opening delimiter.
|
|
25
29
|
|
|
26
30
|
Given a doc string:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
"""application/json
|
|
32
|
+
{
|
|
33
|
+
"foo": "bar"
|
|
34
|
+
}
|
|
35
|
+
"""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{"meta":{"protocolVersion":"
|
|
2
|
-
{"source":{"data":"Feature: Doc strings\n Doc strings are a way to supply long, sometimes multi-line, text to a step. They are passed as the last argument\n to the step definition.\n\n Scenario: a doc string with standard delimiter\n Three double quotes above and below are the standard delimiter for doc strings.\n\n Given a doc string:\n
|
|
3
|
-
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Doc strings","description":" Doc strings are a way to supply long, sometimes multi-line, text to a step. They are passed as the last argument\n to the step definition.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":
|
|
4
|
-
{"pickle":{"id":"7","uri":"samples/doc-strings/doc-strings.feature","location":{"line":
|
|
5
|
-
{"pickle":{"id":"9","uri":"samples/doc-strings/doc-strings.feature","location":{"line":
|
|
6
|
-
{"pickle":{"id":"11","uri":"samples/doc-strings/doc-strings.feature","location":{"line":
|
|
1
|
+
{"meta":{"protocolVersion":"35.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: Doc strings\n\n Doc strings are a way to supply long, sometimes multi-line, text to a step. They are passed as the last argument\n to the step definition.\n\n Scenario: a doc string with standard delimiter\n\n Three double quotes above and below are the standard delimiter for doc strings.\n\n Given a doc string:\n \"\"\"\n Here is some content\n And some more on another line\n \"\"\"\n\n Scenario: a doc string with backticks delimiter\n\n Backticks can also be used, like Markdown, but are less widely supported by editors.\n\n Given a doc string:\n ```\n Here is some content\n And some more on another line\n ```\n\n Scenario: a doc string with media type\n\n The media type can be optionally specified too, following the opening delimiter.\n\n Given a doc string:\n \"\"\"application/json\n {\n \"foo\": \"bar\"\n }\n \"\"\"\n","uri":"samples/doc-strings/doc-strings.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Doc strings","description":" Doc strings are a way to supply long, sometimes multi-line, text to a step. They are passed as the last argument\n to the step definition.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":6,"column":3},"keyword":"Scenario","name":"a doc string with standard delimiter","description":" Three double quotes above and below are the standard delimiter for doc strings.","steps":[{"id":"0","location":{"line":10,"column":5},"keyword":"Given ","keywordType":"Context","text":"a doc string:","docString":{"location":{"line":11,"column":7},"content":"Here is some content\nAnd some more on another line","delimiter":"\"\"\""}}],"examples":[]}},{"scenario":{"id":"3","tags":[],"location":{"line":16,"column":3},"keyword":"Scenario","name":"a doc string with backticks delimiter","description":" Backticks can also be used, like Markdown, but are less widely supported by editors.","steps":[{"id":"2","location":{"line":20,"column":5},"keyword":"Given ","keywordType":"Context","text":"a doc string:","docString":{"location":{"line":21,"column":7},"content":"Here is some content\nAnd some more on another line","delimiter":"```"}}],"examples":[]}},{"scenario":{"id":"5","tags":[],"location":{"line":26,"column":3},"keyword":"Scenario","name":"a doc string with media type","description":" The media type can be optionally specified too, following the opening delimiter.","steps":[{"id":"4","location":{"line":30,"column":5},"keyword":"Given ","keywordType":"Context","text":"a doc string:","docString":{"location":{"line":31,"column":7},"content":"{\n \"foo\": \"bar\"\n}","delimiter":"\"\"\"","mediaType":"application/json"}}],"examples":[]}}]},"comments":[],"uri":"samples/doc-strings/doc-strings.feature"}}
|
|
4
|
+
{"pickle":{"id":"7","uri":"samples/doc-strings/doc-strings.feature","location":{"line":6,"column":3},"astNodeIds":["1"],"tags":[],"name":"a doc string with standard delimiter","language":"en","steps":[{"id":"6","text":"a doc string:","type":"Context","argument":{"docString":{"content":"Here is some content\nAnd some more on another line"}},"astNodeIds":["0"]}]}}
|
|
5
|
+
{"pickle":{"id":"9","uri":"samples/doc-strings/doc-strings.feature","location":{"line":16,"column":3},"astNodeIds":["3"],"tags":[],"name":"a doc string with backticks delimiter","language":"en","steps":[{"id":"8","text":"a doc string:","type":"Context","argument":{"docString":{"content":"Here is some content\nAnd some more on another line"}},"astNodeIds":["2"]}]}}
|
|
6
|
+
{"pickle":{"id":"11","uri":"samples/doc-strings/doc-strings.feature","location":{"line":26,"column":3},"astNodeIds":["5"],"tags":[],"name":"a doc string with media type","language":"en","steps":[{"id":"10","text":"a doc string:","type":"Context","argument":{"docString":{"content":"{\n \"foo\": \"bar\"\n}","mediaType":"application/json"}},"astNodeIds":["4"]}]}}
|
|
7
7
|
{"stepDefinition":{"id":"12","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a doc string:"},"sourceReference":{"uri":"samples/doc-strings/doc-strings.ts","location":{"line":3}}}}
|
|
8
8
|
{"testRunStarted":{"id":"13","timestamp":{"seconds":0,"nanos":0}}}
|
|
9
9
|
{"testCase":{"id":"14","pickleId":"7","testSteps":[{"id":"15","pickleStepId":"6","stepDefinitionIds":["12"],"stepMatchArgumentsLists":[{"stepMatchArguments":[]}]}],"testRunStartedId":"13"}}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Feature: Doc strings with expressions
|
|
2
|
+
|
|
3
|
+
Doc strings can be combined with Cucumber expressions. The arguments from the
|
|
4
|
+
Cucumber expression are provided before the doc string.
|
|
5
|
+
|
|
6
|
+
Scenario: a doc string with a cucumber expression
|
|
7
|
+
Given a "Cucumber" with a doc string:
|
|
8
|
+
"""
|
|
9
|
+
Cucumis sativus
|
|
10
|
+
"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{"meta":{"protocolVersion":"35.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: Doc strings with expressions\n\n Doc strings can be combined with Cucumber expressions. The arguments from the\n Cucumber expression are provided before the doc string.\n\n Scenario: a doc string with a cucumber expression\n Given a \"Cucumber\" with a doc string:\n \"\"\"\n Cucumis sativus\n \"\"\"\n","uri":"samples/doc-strings-with-expression/doc-strings-with-expression.feature","mediaType":"text/x.cucumber.gherkin+plain"}}
|
|
3
|
+
{"gherkinDocument":{"feature":{"tags":[],"location":{"line":1,"column":1},"language":"en","keyword":"Feature","name":"Doc strings with expressions","description":" Doc strings can be combined with Cucumber expressions. The arguments from the\n Cucumber expression are provided before the doc string.","children":[{"scenario":{"id":"1","tags":[],"location":{"line":6,"column":3},"keyword":"Scenario","name":"a doc string with a cucumber expression","description":"","steps":[{"id":"0","location":{"line":7,"column":5},"keyword":"Given ","keywordType":"Context","text":"a \"Cucumber\" with a doc string:","docString":{"location":{"line":8,"column":7},"content":"Cucumis sativus","delimiter":"\"\"\""}}],"examples":[]}}]},"comments":[],"uri":"samples/doc-strings-with-expression/doc-strings-with-expression.feature"}}
|
|
4
|
+
{"pickle":{"id":"3","uri":"samples/doc-strings-with-expression/doc-strings-with-expression.feature","location":{"line":6,"column":3},"astNodeIds":["1"],"tags":[],"name":"a doc string with a cucumber expression","language":"en","steps":[{"id":"2","text":"a \"Cucumber\" with a doc string:","type":"Context","argument":{"docString":{"content":"Cucumis sativus"}},"astNodeIds":["0"]}]}}
|
|
5
|
+
{"stepDefinition":{"id":"4","pattern":{"type":"CUCUMBER_EXPRESSION","source":"a {string} with a doc string:"},"sourceReference":{"uri":"samples/doc-strings-with-expression/doc-strings-with-expression.ts","location":{"line":4}}}}
|
|
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":2,"value":"\"Cucumber\"","children":[{"start":3,"value":"Cucumber","children":[{}]},{"children":[{}]}]},"parameterTypeName":"string"}]}]}],"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}}
|