I'm using mink/behat to test my website. I need certain features be executed before others. Is there a way to specify an order of execution?
For example: There are 3 features: Administration, Login, Buy I need to execute them in this order: Login, Administration, Buy
Thank you!
Behat is a tool that makes behavior driven development (BDD) possible. With BDD, you write human-readable stories that describe the behavior of your application. These stories can then be auto-tested against your application. And yes, it's as cool as it sounds!
Behat is a popular and open-source Behavior-Driven-Development (aka BDD) framework for PHP. It makes it possible to write tests using a structured natural language. For testing applications in a web context, it uses another component, Mink, which role is to manage browser sessions using drivers.
Behat is a PHP testing framework which can be used to automate acceptance tests in a human readable language called Gherkin. Since it is based on Cucumber, it also helps teams to adopt and implement Behavioral Driven Development (BDD).
Behat executes files in an alphabetic order. You could prefix them with a number to force the order.
However...
Scenarios are meant to be independent and the execution order shouldn't matter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With