-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Describe your idea
Create a CI flow that would step-by-step integrate detox into a fresh RN project and verify that firstTest
passes successfully:
- Bootstrap a specific (or latest) version of a React Native boiler project:
npx react-native init SelfTestProject --version 0.67.4
- From within the project directory, install Detox:
npm i detox --save-dev
- Run the sequence of shell commands according to Jest Setup Guide:
and automatically apply necessary patches for iOS:
npm install -D "jest@>=27.2.5" npx detox init -r jest
apps: { ios: { type: 'ios.app', - binaryPath: 'SPECIFY_PATH_TO_YOUR_APP_BINARY', + binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/SelfTestProject.app', }, android: { type: 'android.apk', - binaryPath: 'SPECIFY_PATH_TO_YOUR_APP_BINARY', + binaryPath: 'android/app/build/outputs/apk/fromBin/debug/app-fromBin-debug.apk', }, },
- Run:
detox build -c ios.sim.debug
anddetox build -c ios.sim.release
. - Run the tests both for the debug and release configurations. Make sure they pass on the boilerplate app. 🟢