Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.16 KB

File metadata and controls

40 lines (24 loc) · 1.16 KB

End to end testing with Detox

iOS

Initial setup

  1. yarn install, sudo gem install cocoapods, bundle install && yarn pod-install
  2. brew tap wix/brew && brew install applesimutils

Running the tests

  1. yarn pre:test:ios
  2. yarn test:ios

Android

Initial setup

  1. yarn install, sudo gem install cocoapods, bundle install && yarn pod-install
  2. Install the android emulator Pixel_3_API_29 using these instructions.
  3. Set up quick boot on the emulator.

Running the tests

  1. yarn pre:test:android
  2. yarn test:android

Notes

We may want to look at using Android Open-Source Project (AOSP) emulators, since Detox says they are better for automated testing.

Troubleshooting

Error:

> Task :@react-native-community_async-storage:processDebugAndroidTestResources FAILED

Try: cd android && ./gradlew clean