DEV Community

Discussion on: React Native e2e tests and Automatic Deploys (Detox + Fastlane + CircleCI)

Collapse
 
kierano547 profile image
Kieran Osgood • Edited

When you chose the macos executor instead of the linux_android for the android e2e tests: "Note that all of this can be achieved using the rn/linux_android executor." was there any reason for that choice? The macos minutes are more expensive AFAIK, and you chose to mention both would work, so just curious if it was more difficult to do or something?

p.s. I found that the rn/ios_build_and_test command worked just fine when used like this:

      - rn/ios_build_and_test:
          yarn_cache: false
          xcodebuild_cache: false
          homebrew_cache: false
          project_type: "workspace"
          project_path: "ios/punchline.xcworkspace"
          device: "iPhone 11"
          build_configuration: "Release"
          scheme: "punchline"
          detox_configuration: "ios.sim.release"
          requires:
            - checkout_code
            - analyse_js
            - update_homebrew
Enter fullscreen mode Exit fullscreen mode

Currently trying to decide how I can most efficiently configure the e2e tests on release, and ideally use the same build artifacts from that to release through fastlane or something

Collapse
 
kyonru profile image
Roberto Junior Amarante Calderón

That definitely would save some time. I'm not sure of the implications of publishing the detox build for android. But It would definitely help for ios.

Collapse
 
kyonru profile image
Roberto Junior Amarante Calderón

In the beginning, I tried with the linux_executor. I don't remember exactly why I changed, I think it was related to all the detox dependencies and setting up the environment. (But later other issues came up, so I had to do all of that... At this point, it should be that hard to change the executor, but idk since I need to try it again).

Thanks for the suggestion! I'll make an update with your suggestion with iOS.

Collapse
 
krishnag09 profile image
Krishna Gaurav

@ Kieran Osgood - Were you able to find a way to reduce the ios build time for detox, using macos or linux as env?