Skip to content

Commit

Permalink
fix: refer to example location not outline location in json formatter (
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss authored Feb 11, 2023
1 parent cd50dc2 commit 93ee7ee
Show file tree
Hide file tree
Showing 5 changed files with 578 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Please see [CONTRIBUTING.md](https://github.com/cucumber/cucumber/blob/master/CO
## [Unreleased]
### Fixed
- Exit correctly when there's a Gherkin parse failure [#2233](https://github.com/cucumber/cucumber-js/pull/2233)
- Refer to correct example line in JSON formatter ([#2236](https://github.com/cucumber/cucumber-js/pull/2236))

## [8.11.0] - 2023-02-10
### Added
Expand Down
85 changes: 85 additions & 0 deletions features/fixtures/formatters/passed-scenario-outline.json.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
module.exports = [
{
description: '',
elements: [
{
description: '',
id: 'a-feature;a-scenario',
keyword: 'Scenario Outline',
line: 6,
name: 'a scenario',
steps: [
{
arguments: [],
keyword: 'Given ',
line: 3,
name: 'a hop',
match: {
location: 'features/step_definitions/steps.js:3',
},
result: {
status: 'passed',
duration: 0,
},
},
],
tags: [],
type: 'scenario',
},
{
description: '',
id: 'a-feature;a-scenario',
keyword: 'Scenario Outline',
line: 7,
name: 'a scenario',
steps: [
{
arguments: [],
keyword: 'Given ',
line: 3,
name: 'a step',
match: {
location: 'features/step_definitions/steps.js:4',
},
result: {
status: 'passed',
duration: 0,
},
},
],
tags: [],
type: 'scenario',
},
{
description: '',
id: 'a-feature;a-scenario',
keyword: 'Scenario Outline',
line: 8,
name: 'a scenario',
steps: [
{
arguments: [],
keyword: 'Given ',
line: 3,
name: 'a jump',
match: {
location: 'features/step_definitions/steps.js:5',
},
result: {
status: 'passed',
duration: 0,
},
},
],
tags: [],
type: 'scenario',
},
],
id: 'a-feature',
line: 1,
keyword: 'Feature',
name: 'a feature',
tags: [],
uri: 'features/a.feature',
},
]
Loading

0 comments on commit 93ee7ee

Please sign in to comment.