Run a single example #2297
-
|
Is it possible to run a single example now? I ultimately need this functionality in the Cucumber for Java plugin, but I assume the framework should provide it first. |
Beta Was this translation helpful? Give feedback.
Answered by
mpkorstanje
Dec 11, 2025
Replies: 1 comment
-
|
Yes. This has been possible since the beginning. If using the CLI either put the line on the feature path so it looks like Or if you're using the JUnit Platform, file and resource selectors support lines. So those work in the same way as the feature path. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wazzeps
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. This has been possible since the beginning.
If using the CLI either put the line on the feature path so it looks like
path/to/example.feature:16:42. This will run the scenarios and/or examples on lines 16 and 42.Or if you're using the JUnit Platform, file and resource selectors support lines. So those work in the same way as the feature path.