detox
- Make sure you have Xcode installed (tested with Xcode 8.1-8.2).
- Make sure you have node and npm installed.
- Make sure you have react-native dependencies installed:
- react-native-cli is installed (
npm install -g react-native-cli
) - watchman is installed (
brew install watchman
)
- react-native-cli is installed (
- Make sure you're in folder
examples/demo-react-native
. - Run
npm install
.
- Build the demo project
detox build --configuration ios.sim.release
- Run tests on the demo project
detox test --configuration ios.sim.release
This action will open a new simulator and run the tests on it.
- Build the demo project
detox build --configuration ios.sim.debug
- start react-native packager
npm run packager
- Run tests on the demo project
detox test --configuration ios.sim.debug
This action will open a new simulator and run the tests on it.