Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to choose order for detox tests?

Tags:

detox

I created multiple test files like this:

0_setup.e2e.js
1_otherTests.e2e.js
2_loggedInTests.e2e.js

But it executed it out of order. It executed in this order:

0_setup.e2e.js
2_loggedInTests.e2e.js
1_otherTests.e2e.js
like image 891
Joshua Augustinus Avatar asked Sep 19 '25 22:09

Joshua Augustinus


1 Answers

The answer is probably not. A more elaborate answer us that it is test runner dependent. But you should not be creating any dependencies or order requirements between test suites; thats a bad practice in general.

like image 165
Léo Natan Avatar answered Sep 23 '25 12:09

Léo Natan