-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core] Allow feature with line syntax to target rules and examples (#…
…2884) Given a feature file, it should be possible to provide the line of a Feature, Rule, Scenario, Example and Example. Cucumber should then run all pickles contained in these elements. For example `example.feature:5:13` should run the cucumber, gherkin and pickle pickles. While `example.feature:10` runs the zukini and pickle pickles. And using either lines 1,2 or 3 would run all pickles. ```feature Feature: Example feature # 1 Rule: Example rule # 2 Scenario Outline: Example scenario # 3 Given I have 4 <thing> in my belly # 4 Examples: First # 5 | thing | # 6 | cucumber | # 7 | gherkin | # 8 # 9 Examples: Second # 10 | thing | # 11 | zukini | # 12 | pickle | # 13 ``` This should make it possible to target (groups of) pickles with a bit more flexibility. And also allow IDEA to select rules. Note: Using the lines of backgrounds and steps will still not select any pickles.
- Loading branch information
1 parent
1464e96
commit dc62378
Showing
7 changed files
with
279 additions
and
50 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
Oops, something went wrong.