Skip to content

Commit 659bcc0

Browse files
committed
test: Update expected parsing results for cucumber variants
1 parent bb13e51 commit 659bcc0

17 files changed

+357
-63
lines changed

tests/Cucumber/expected_variants/gherkin-32/descriptions.feature.expected.yaml

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

tests/Cucumber/expected_variants/gherkin-32/descriptions_with_comments.feature.expected.yaml

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

tests/Cucumber/expected_variants/gherkin-32/feature_keyword_in_scenario_description.feature.expected.yaml

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

tests/Cucumber/expected_variants/gherkin-32/incomplete_background_2.feature.expected.yaml

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

tests/Cucumber/expected_variants/gherkin-32/padded_example.feature.expected.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Behat\Gherkin\Node\FeatureNode:
1111
Behat\Gherkin\Node\ExampleTableNode:
1212
keyword: Examples
1313
tags: []
14+
name: ~
15+
description: ~
1416
maxLineLength:
1517
- 9
1618
table:
@@ -46,6 +48,7 @@ Behat\Gherkin\Node\FeatureNode:
4648
line: 4
4749
keyword: Scenario
4850
line: 3
51+
description: ~
4952
keyword: Feature
5053
language: en
5154
file: {BASEDIR}/vendor/cucumber/gherkin-monorepo/testdata/good/padded_example.feature

tests/Cucumber/expected_variants/gherkin-32/rule_without_name_and_description.feature.expected.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Behat\Gherkin\Node\FeatureNode:
1818
line: 5
1919
keyword: Scenario
2020
line: 4
21+
description: ~
2122
keyword: Feature
2223
language: en
2324
file: {BASEDIR}/vendor/cucumber/gherkin-monorepo/testdata/good/rule_without_name_and_description.feature

tests/Cucumber/expected_variants/legacy/datatables_with_new_lines.feature.expected.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Behat\Gherkin\Node\FeatureNode:
3939
line: 6
4040
keyword: Scenario
4141
line: 3
42+
description: ~
4243
keyword: Feature
4344
language: en
4445
file: {BASEDIR}/vendor/cucumber/gherkin-monorepo/testdata/good/datatables_with_new_lines.feature
Lines changed: 170 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,170 @@
1-
Behat\Gherkin\Exception\UnexpectedParserNodeException:
2-
message: 'Expected Examples table or end of Scenario, but got text: "This is an examples description" in file: {BASEDIR}/vendor/cucumber/gherkin-monorepo/testdata/good/descriptions.feature'
3-
code: 0
1+
Behat\Gherkin\Node\FeatureNode:
2+
title: 'Descriptions everywhere'
3+
description: 'This is a single line description'
4+
tags: []
5+
background: ~
6+
scenarios:
7+
-
8+
Behat\Gherkin\Node\ScenarioNode:
9+
title: |-
10+
two lines
11+
This description
12+
has two lines and indented with two spaces
13+
tags: []
14+
steps:
15+
-
16+
Behat\Gherkin\Node\StepNode:
17+
keywordType: Given
18+
keyword: Given
19+
text: 'the minimalism'
20+
arguments: []
21+
line: 7
22+
keyword: Scenario
23+
line: 4
24+
description: ~
25+
-
26+
Behat\Gherkin\Node\ScenarioNode:
27+
title: |-
28+
without indentation
29+
This is a description without indentation
30+
tags: []
31+
steps:
32+
-
33+
Behat\Gherkin\Node\StepNode:
34+
keywordType: Given
35+
keyword: Given
36+
text: 'the minimalism'
37+
arguments: []
38+
line: 11
39+
keyword: Scenario
40+
line: 9
41+
description: ~
42+
-
43+
Behat\Gherkin\Node\ScenarioNode:
44+
title: |-
45+
empty lines in the middle
46+
This description
47+
48+
has an empty line in the middle
49+
tags: []
50+
steps:
51+
-
52+
Behat\Gherkin\Node\StepNode:
53+
keywordType: Given
54+
keyword: Given
55+
text: 'the minimalism'
56+
arguments: []
57+
line: 17
58+
keyword: Scenario
59+
line: 13
60+
description: ~
61+
-
62+
Behat\Gherkin\Node\ScenarioNode:
63+
title: |-
64+
empty lines around
65+
66+
This description
67+
has an empty lines around
68+
tags: []
69+
steps:
70+
-
71+
Behat\Gherkin\Node\StepNode:
72+
keywordType: Given
73+
keyword: Given
74+
text: 'the minimalism'
75+
arguments: []
76+
line: 24
77+
keyword: Scenario
78+
line: 19
79+
description: ~
80+
-
81+
Behat\Gherkin\Node\ScenarioNode:
82+
title: |-
83+
comment after description
84+
This description
85+
has a comment after
86+
tags: []
87+
steps:
88+
-
89+
Behat\Gherkin\Node\StepNode:
90+
keywordType: Given
91+
keyword: Given
92+
text: 'the minimalism'
93+
arguments: []
94+
line: 31
95+
keyword: Scenario
96+
line: 26
97+
description: ~
98+
-
99+
Behat\Gherkin\Node\ScenarioNode:
100+
title: |-
101+
comment right after description
102+
This description
103+
has a comment right after
104+
tags: []
105+
steps:
106+
-
107+
Behat\Gherkin\Node\StepNode:
108+
keywordType: Given
109+
keyword: Given
110+
text: 'the minimalism'
111+
arguments: []
112+
line: 38
113+
keyword: Scenario
114+
line: 33
115+
description: ~
116+
-
117+
Behat\Gherkin\Node\ScenarioNode:
118+
title: |-
119+
description with escaped docstring separator
120+
This description has an \"\"\" (escaped docstring sparator)
121+
tags: []
122+
steps:
123+
-
124+
Behat\Gherkin\Node\StepNode:
125+
keywordType: Given
126+
keyword: Given
127+
text: 'the minimalism'
128+
arguments: []
129+
line: 43
130+
keyword: Scenario
131+
line: 40
132+
description: ~
133+
-
134+
Behat\Gherkin\Node\OutlineNode:
135+
tables:
136+
-
137+
Behat\Gherkin\Node\ExampleTableNode:
138+
keyword: Examples
139+
tags: []
140+
name: |-
141+
examples with description
142+
This is an examples description
143+
description: ~
144+
maxLineLength:
145+
- 3
146+
table:
147+
51:
148+
- foo
149+
52:
150+
- bar
151+
examples: '**NOT INITIALIZED**'
152+
title: |-
153+
scenario outline with a description
154+
This is a scenario outline description
155+
tags: []
156+
steps:
157+
-
158+
Behat\Gherkin\Node\StepNode:
159+
keywordType: Given
160+
keyword: Given
161+
text: 'the minimalism'
162+
arguments: []
163+
line: 47
164+
keyword: 'Scenario Outline'
165+
line: 45
166+
description: ~
167+
keyword: Feature
168+
language: en
169+
file: {BASEDIR}/vendor/cucumber/gherkin-monorepo/testdata/good/descriptions.feature
170+
line: 1

0 commit comments

Comments
 (0)