Search code examples
detox

Is there a way to choose order for detox tests?


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

Solution

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