通过命令提示符运行黄瓜测试运行:0,失败:0,错误:0,跳过:0

时间:2018-12-21 09:27:07

标签: maven command pom.xml cucumber-jvm

我正在尝试通过命令行(Windows env)运行Cucumber标签。我正确配置了pom.xml和maven。我打了-----

这样的命令

D:\ apache-maven-3.6.0 \ bin> MVN clean -f E:\ gitClone \ demoBDDFramework test -Dcucumber.options =“ E:\ gitClone \ demoBDDFramework \ src \ main \ java \ com \ assetvantage \ featureFile --gule E:\ gitClone \ demoBDDFramework \ src \ main \ java \ com \ assetvantage \ StepDefination --tags @SmokeTest“ -e

D:\ apache-maven-3.6.0 \ bin> MVN clean -f E:\ gitClone \ demoBDDFramework test -Dcucumber.options =“ ../ src / main / java / com / assetvantage / featureFile --tags @SmokeTest“ -e

D:\ apache-maven-3.6.0 \ bin> mvn clean -f E:\ gitClone \ demoBDDFramework test -Dcucumber.options =“-tags @SmokeTest” -e

下面将提到输出

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.879 s
[INFO] Finished at: 2018-12-21T14:24:39+05:30
[INFO] ------------------------------------------------------------------------[eclipse project structure][1]

请提出建议。

附加了我的pom.xml CMD output Eclipse project structure

1 个答案:

答案 0 :(得分:0)

似乎在命令行中有错字。 “ --gule”,首先应该是“ --glue”。