Skip to content

Expo application with detox to run e2e using Github Workflow

Notifications You must be signed in to change notification settings

calitb/expo-e2e-demo

Repository files navigation

runs with Expo Go E2E (iOS) E2E (Android)

Expo e2e Demo

Application template to demonstrate how to run e2e in an Expo Managed application using Detox

Tested using:

  • MacOS 12.1 Monterrey, M1 Pro
  • ExpoCli v5.0.2
  • CocoaPods v1.11.2

Dependencies

xcode-select --install
npm install -g detox-cli
brew tap wix/brew
brew install applesimutils

Configure Expo

Install Expo CLI:

npm install -g expo-cli

Run the app

yarn start:go

and scan the QRCode with your iOS Camera, or Android Expo app.

Run the e2e

yarn e2e:ios

Check the wiki in this repo to see how to setup this in your project.

Running e2e using EAS (Expo Application Server)

See the detailed guide here.

Run yarn run eas-e2e to build the app and run the tests.

Notice the file .github/workflows/deployment.yml runs the e2e on each comnmit to the main branch.

Remember to create your EXPO_TOKEN here, and add it to your repository following this guide