Cucumber Feature file execution from maven CLI

I am trying to execute a cucumber feature file from maven command line and facing the following issue – Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.14.1:test (default-test) on project Maven: No tests were executed!
The command I have used to execute is – 
mvn -Dtest -Document.options=”src/test/resources/maven_poc/excel_colors.feature:3″
in alignment with the format found at ToolsQA site (Reference : How to Run Cucumber Test from Command Line / Terminal)
However the step definitions file is executed successfully when executed from maven command prompt. Anyone who has come across similar issue and can help with resolution?
Default Asked on March 13, 2019 in Software Testing.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.