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?