I have a question about integrating app center with Detox. Currently I have to run the following commands to build the app and then run the tests:
detox build --configuration ios.sim.release
detox test --configuration ios.sim.release --cleanup
This happens in the appcenter-pre-build.sh
section. However this means that the app will be built twice, once by detox and then again by the AppCenter build process. Is there a way to stop the AppCenter process as soon as the detox tests pass? I'm thinking something along the lines of Clone -> Detox build -> run unit tests -> run detox tests -> finish.
I assume that if the detox build fails then the entire build would be invalid as it is so there is no reason to build again, right?