You can specify the script as an argument to run, although Intellij or on the command line:
As jhilan mentions, in Ruby the command looks like this:
cucumber path/to/file.feature:33
In cucumber-jvm, it looks like this:
-Dcucumber.options="classpath:<package-path>/<file>.feature:<line>"
For example, -Dcucumber.options="classpath:com/company/my_feature.feature:6"
To install this in Intellij, check out their docs on launch configuration
I know this is an old post, but it is still Google’s second largest search result for “scripted cucumber execution”. So I thought I deserved a more thorough answer.
source share