https://github.com/calitb/expo-e2e-demo
Expo application with detox to run e2e using Github Workflow
https://github.com/calitb/expo-e2e-demo
detox e2e expo reactnative
Last synced: 6 months ago
JSON representation
Expo application with detox to run e2e using Github Workflow
- Host: GitHub
- URL: https://github.com/calitb/expo-e2e-demo
- Owner: calitb
- Created: 2022-01-15T01:21:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-13T02:00:06.000Z (about 3 years ago)
- Last Synced: 2025-03-29T21:41:23.980Z (6 months ago)
- Topics: detox, e2e, expo, reactnative
- Language: Java
- Homepage:
- Size: 637 KB
- Stars: 36
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://expo.io/client)
[](https://github.com/calitb/ExpoE2EDemo/actions/workflows/e2e_ios.yml)
[](https://github.com/calitb/ExpoE2EDemo/actions/workflows/e2e_android.yml)# 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:
```shell
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](https://github.com/calitb/ExpoE2EDemo/wiki/Setup-Github-Workflow-to-run-e2e-in-an-Expo-project-using-Detox) in this repo to see how to setup this in your project.
## Running e2e using EAS (Expo Application Server)
See the detailed guide [here](https://docs.expo.dev/build-reference/e2e-tests/).
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](https://docs.expo.dev/accounts/programmatic-access), and add it to your repository following [this guide](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository)