The problem is as follows

There is, for example, a registration form with 5 steps. A separate Cest file is written for each step (since there is a lot to test on each form)

And here it turns out such a mess

RegOne.php RegThree.php RegTwo.php 

Is it possible to somehow Codeception (cli) say that files should be run in a different order?

1 answer 1

I give an example of how it worked for me

Used groups ( https://codeception.com/docs/07-AdvancedUsage#Groups )

For start

 $ php vendor/bin/codecept run -g register 

and in the *.suite.yml file declared the group

 groups: register: - tests/acceptance/RegOne.php - tests/acceptance/RegTwo.php - tests/acceptance/RegThree.php 

Thanks @ 4e4e4i for the tip

  • Unfortunately, the codeception still performs the tests alphabetically. In other words, the group will not help here. Tests will have to be called Reg1.php , Reg2.php , etc. - WiRight