Execute Feature file using Cucumber Eclipse Plugin
Cucumber Eclipse plugin helps eclipse to understand the basic Gherkin syntax and it works like a syntax highlighter.
It highlight all the main syntax in the feature file which makes it more readable and clear. It also enables the run of the feature file independently, without the help of JUnit.
If Cucumber plugin is not installed in your eclipse you can follow this link Install Cucumber Plugin in Eclipse.
There are 2 ways to run feature file using Cucumber plugin
1. Right click on your feature file and select Run As -> Cucumber Feature. I observed this technique does not work several time, use approach two if you face similar problem.
2. Right click inside your feature file and select Run As -> Cucumber Feature.