Skip to main content

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

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.

Submitted by tgoswami on October 22, 2020

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.