Behat: Execute all scenarios in a feature file using feature file name

Profile picture for user devraj

There would be certain occasion when you want to execute all the scenarios in a particular feature file. For that you can use below command:

bin/behat features/Login.feature

 For that you just need to specify behat command, then folder where feature file is located and then feature file name along with its extension. In below screenshot you can see our Login.feature is located inside features folder and above command will execute total 3 scenarios, 1 scenario and 2 examples of scenario outline.

Tags