You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
10
10
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
11
12
12
## [Unreleased]
13
-
### Changed
13
+
### Added
14
14
-[Core] The TeamCityPlugin for IntelliJ IDEA now uses the hook's method name for the name of the hook itself. ([#2798](https://github.com/cucumber/cucumber-jvm/issues/2798) V.V. Belov)
15
+
-[Core] Allow feature with line syntax to target rules and examples. ([#2884](https://github.com/cucumber/cucumber-jvm/issues/2884) M.P. Korstanje)
0 commit comments