forked from Behat/Gherkin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Outline on background
- Loading branch information
Showing
8 changed files
with
147 additions
and
23 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
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
31 changes: 31 additions & 0 deletions
31
tests/Behat/Gherkin/Fixtures/etalons/background_with_outline.yml
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,31 @@ | ||
feature: | ||
title: Feature with background and example | ||
language: en | ||
line: 1 | ||
description: ~ | ||
|
||
background: | ||
line: 3 | ||
steps: | ||
- { keyword_type: Given, type: Given, text: a passing step, line: 4 } | ||
examples: | ||
6: [login, password] | ||
7: ['', ''] | ||
8: [unknown_user, ''] | ||
|
||
scenarios: | ||
- | ||
type: outline | ||
title: ~ | ||
line: 10 | ||
steps: | ||
- { keyword_type: 'Given', type: 'Given', text: 'a failing step', line: 11 } | ||
- { keyword_type: 'When', type: 'When', text: 'I fill in "login" with "<login>"', line: 12 } | ||
- { keyword_type: 'When', type: 'And', text: 'I fill in "password" with "<password>"', line: 13 } | ||
arguments: | ||
- | ||
type: table | ||
rows: | ||
6: [ login, password ] | ||
7: [ '' , '' ] | ||
8: [ unknown_user , '' ] |
13 changes: 13 additions & 0 deletions
13
tests/Behat/Gherkin/Fixtures/features/background_with_outline.feature
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,13 @@ | ||
Feature: Feature with background and example | ||
|
||
Background: | ||
Given a passing step | ||
Examples: | ||
| login | password | | ||
| | | | ||
| unknown_user | | | ||
|
||
Scenario Outline: | ||
Given a failing step | ||
When I fill in "login" with "<login>" | ||
And I fill in "password" with "<password>" |
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