Wix/detox UI tests don't run on CircleCI

ios
support
circle.yml
2.0

#1

Hello everyone,

we are building react-native app (iOS only) and for e2e testing we use Detox framework (https://github.com/wix/detox). When I run these tests locally everything works fine but I’m unable to make them run in CircleCI (2.0).

Here is what our config.yml file looks like (in .circleci folder):

And these are the relevant package.json parts
under scripts:

and then:

When I run these tests on CircleCI everything works up to the test phase. There it behaves erroneously. First it finds the booted device but it seems like detox skips some of the steps it does when run locally and tries to run some test steps but these seems to be chosen randomly and are not even part of the same test function.

Did anyone encounter similar problems? Any help is much appreciated, thank you.


#2

Hi @Crhaj did you make any progress on this? Currently experiencing the same thing.


#3

@Crhaj I created an issue on the detox repo since I think it might be fixable there https://github.com/wix/detox/issues/670


#4

Hi @Angry-Potato I did not. I’ve posted question to stack overflow as it is the main channel detox developers use now to troubleshoot. I got some responses there from their developers but no solution yet.
Thanks you for posting the github issue here. Will keep an eye on this.


#5

@Crhaj nice, I created a repo that reproduces the issue https://github.com/Angry-Potato/detox-testing


#6

seems to be that the first test fails regardless of what it is or what the state of the app is


#7

@Crhaj note that the question could do with some amendments on Stack Overflow, since textual material that should be in the question itself is stored as external images. Non-official image host links break frequently on Stack Overflow, necessitating work to repair or delete the question. It may be put “on hold” there as a result.

This article explains the problems associated with supplying text as images.

May I suggest that you replace those images there (and here) with the Markdown equivalent? You’ll find that will allow readers to copy and paste easily, rather than forcing them to transcribe the bit they want. It will also help readers searching for a solution in the future.

Also, if you have a real need to post images on Stack Overflow, use the official uploader if you can - those links are more permanent. Thanks!


#8

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.