cucumber: how to run specific scenario from a feature file

Aditya :

I have multiple scenarios listed in a feature file and I need to run only a single failing scenario (for debugging purposes).

I have mentioned @tag before the scenario but while in Test Runner file when given this tag it is running entire feature file. Please help me out how to put it correctly.

TEST Runner file -

tags={"@Islamic_User_check"},
JohnP2 :

Update: there is now a tags options

cucumber --tags @tagname

In maven:

 mvn test -Dcucumber.options="--tags @tagname"

(and in Windows powershell escape the -D with a backtick)

 mvn test `-Dcucumber.options="--tags @tagname"

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=453778&siteId=1