Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added --expand option. Needs more work. [#327]
- Loading branch information
1 parent
f647dfb
commit 8541d49
Showing
9 changed files
with
88 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Feature: --expand option | ||
In order to make it easier to writhe certain editor plugins | ||
and also for some people to understand scenarios, Cucumber | ||
should expand examples in outlines. | ||
|
||
Background: | ||
Given a standard Cucumber project directory structure | ||
And a file named "features/expand_me.feature" with: | ||
""" | ||
Feature: submit guess | ||
Scenario Outline: submit guess | ||
Given the secret code is <code> | ||
When I guess <guess> | ||
Then the mark should be <mark> | ||
Examples: all colors correct | ||
| code | guess | mark | | ||
| r g y c | r g y c | bbbb | | ||
| r g y c | r g c y | bbww | | ||
""" | ||
|
||
Scenario: Expand the outline | ||
When I run cucumber -i -q --expand features/expand_me.feature | ||
Then the output should contain | ||
""" | ||
Feature: submit guess | ||
Scenario Outline: submit guess | ||
Given the secret code is <code> | ||
When I guess <guess> | ||
Then the mark should be <mark> | ||
Examples: all colors correct | ||
Scenario Outline: submit guess | ||
Given the secret code is r g y c | ||
When I guess r g y c | ||
Then the mark should be bbbb | ||
Scenario Outline: submit guess | ||
Given the secret code is r g y c | ||
When I guess r g c y | ||
Then the mark should be bbww | ||
""" |
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
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