Thursday 30 April 2020

Tip : Run specific cucumber scenario from command line for an executable jar file

Hi,

Syntax: 
java -Dcucumber.options="-tags @<ScenarioName>" - jar <executable-jar-file>

java  -Dcucumber.options="--tags @scenario_AddUser" -jar SADAKAR_CUCUMBER_POC-0.0.1-SNAPSHOT-jar-with-dependencies.jar

Snapshot:




References: 
https://stackoverflow.com/questions/37559861/run-a-single-cucumber-scenario-from-an-executable-jar

No comments:

Post a Comment