How to run cucumber file from command line

后端 未结 2 1657
悲哀的现实
悲哀的现实 2020-12-11 02:39

I have cucumber feature file located at below location on my local:

C:\\ProjectWork\\Workspace\\Cucumber\\DIT_Cucumber\\src\\cucumber\\featureOne.feature
         


        
2条回答
  •  伪装坚强ぢ
    2020-12-11 03:08

    Cucumber with Java:

    Run Feature: java -cp "jars/*" cucumber.api.cli.Main -p pretty features

    compile Step Definition file: javac -cp "jars/*" step_definition/StepDef.java

    Run Scenario: java -cp "jars/*;." cucumber.api.cli.Main -p pretty -g step_definition features

提交回复
热议问题