This sample project demonstrates running Detox tests prior to a regular MS AppCenter build
This project has also run Detox tests successfully from AppCenter with:-
- Detox 9.1.2 built by Xcode 9.4.1
- or Detox 9.0.4 built by Xcode 10.1
- or Detox 9.0.4 built by Xcode 9.4.1
Make sure you have installed:
- Xcode (tested with Xcode 9.4.1 and Xcode 10.1)
- xcpretty (
gem install xcpretty
- https://github.com/supermarin/xcpretty) - Node.js (
brew install node@8
ornvm install
. Node version 8.X or newer is required) - react-native dependencies:
- watchman is installed (
brew install watchman
)
- watchman is installed (
See software installation commands in appcenter-post-clone.sh
for any other dependencies that may need to be installed to build and run this project anywhere other than in MS AppCenter.
- Run
npm install
.
- Build the demo project
npx detox build --configuration ios.sim.release
- Run tests on the demo project
npx detox test --configuration ios.sim.release
This action will open a new simulator and run the tests on it.
- Build the demo project
npx detox build --configuration ios.sim.debug
- start react-native packager
npm run start
- Run tests on the demo project
npx detox test --configuration ios.sim.debug
This action will open a new simulator and run the tests on it.