-
-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #800 from cucumber/gherkin-unique-picklestep-ids
Gherkin unique picklestep ids
- Loading branch information
Showing
125 changed files
with
4,515 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,6 @@ Feature: Background | |
|
||
Scenario: minimalistic | ||
Given the minimalism | ||
|
||
Scenario: also minimalistic | ||
Given the minimalism |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Feature: Complex background | ||
We want to ensure PickleStep all have different IDs | ||
|
||
Background: a simple background | ||
Given the minimalism inside a background | ||
|
||
Scenario: minimalistic | ||
Given the minimalism | ||
|
||
Scenario: also minimalistic | ||
Given the minimalism | ||
|
||
Rule: My Rule | ||
|
||
Background: | ||
Given a rule background step | ||
|
||
Scenario: with examples | ||
Given the <value> minimalism | ||
|
||
Examples: | ||
| value | | ||
| 1 | | ||
| 2 | |
195 changes: 195 additions & 0 deletions
195
gherkin/c/testdata/good/complex_background.feature.ast.ndjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
{ | ||
"gherkinDocument": { | ||
"feature": { | ||
"children": [ | ||
{ | ||
"background": { | ||
"keyword": "Background", | ||
"location": { | ||
"column": 3, | ||
"line": 4 | ||
}, | ||
"name": "a simple background", | ||
"steps": [ | ||
{ | ||
"id": "0", | ||
"keyword": "Given ", | ||
"location": { | ||
"column": 5, | ||
"line": 5 | ||
}, | ||
"text": "the minimalism inside a background" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"scenario": { | ||
"id": "2", | ||
"keyword": "Scenario", | ||
"location": { | ||
"column": 3, | ||
"line": 7 | ||
}, | ||
"name": "minimalistic", | ||
"steps": [ | ||
{ | ||
"id": "1", | ||
"keyword": "Given ", | ||
"location": { | ||
"column": 5, | ||
"line": 8 | ||
}, | ||
"text": "the minimalism" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"scenario": { | ||
"id": "4", | ||
"keyword": "Scenario", | ||
"location": { | ||
"column": 3, | ||
"line": 10 | ||
}, | ||
"name": "also minimalistic", | ||
"steps": [ | ||
{ | ||
"id": "3", | ||
"keyword": "Given ", | ||
"location": { | ||
"column": 5, | ||
"line": 11 | ||
}, | ||
"text": "the minimalism" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"rule": { | ||
"children": [ | ||
{ | ||
"background": { | ||
"keyword": "Background", | ||
"location": { | ||
"column": 5, | ||
"line": 15 | ||
}, | ||
"steps": [ | ||
{ | ||
"id": "5", | ||
"keyword": "Given ", | ||
"location": { | ||
"column": 7, | ||
"line": 16 | ||
}, | ||
"text": "a rule background step" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"scenario": { | ||
"examples": [ | ||
{ | ||
"keyword": "Examples", | ||
"location": { | ||
"column": 7, | ||
"line": 21 | ||
}, | ||
"tableBody": [ | ||
{ | ||
"cells": [ | ||
{ | ||
"location": { | ||
"column": 9, | ||
"line": 23 | ||
}, | ||
"value": "1" | ||
} | ||
], | ||
"id": "8", | ||
"location": { | ||
"column": 7, | ||
"line": 23 | ||
} | ||
}, | ||
{ | ||
"cells": [ | ||
{ | ||
"location": { | ||
"column": 9, | ||
"line": 24 | ||
}, | ||
"value": "2" | ||
} | ||
], | ||
"id": "9", | ||
"location": { | ||
"column": 7, | ||
"line": 24 | ||
} | ||
} | ||
], | ||
"tableHeader": { | ||
"cells": [ | ||
{ | ||
"location": { | ||
"column": 9, | ||
"line": 22 | ||
}, | ||
"value": "value" | ||
} | ||
], | ||
"id": "7", | ||
"location": { | ||
"column": 7, | ||
"line": 22 | ||
} | ||
} | ||
} | ||
], | ||
"id": "10", | ||
"keyword": "Scenario", | ||
"location": { | ||
"column": 5, | ||
"line": 18 | ||
}, | ||
"name": "with examples", | ||
"steps": [ | ||
{ | ||
"id": "6", | ||
"keyword": "Given ", | ||
"location": { | ||
"column": 7, | ||
"line": 19 | ||
}, | ||
"text": "the <value> minimalism" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"keyword": "Rule", | ||
"location": { | ||
"column": 3, | ||
"line": 13 | ||
}, | ||
"name": "My Rule" | ||
} | ||
} | ||
], | ||
"description": " We want to ensure PickleStep all have different IDs", | ||
"keyword": "Feature", | ||
"language": "en", | ||
"location": { | ||
"column": 1, | ||
"line": 1 | ||
}, | ||
"name": "Complex background" | ||
}, | ||
"uri": "testdata/good/complex_background.feature" | ||
} | ||
} |
Oops, something went wrong.