testingbehatmink

How can i specify an order in mink/behat tests?


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!


Solution

  • 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.