You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Henning Hall 563b930982
chore: move some detox tests to mastro (#642)
2 years ago
..
android chore: fix example project build (#604) 2 years ago
e2e chore: move some detox tests to mastro (#642) 2 years ago
ios Add android tests 5 years ago
src feat: modal (#376) 4 years ago
.buckconfig Add detox example 6 years ago
.flowconfig Add detox example 6 years ago
.gitignore Add detox example 6 years ago
.watchmanconfig Add detox example 6 years ago
README.md Add detox example 6 years ago
fix-rn-version.ts chore: fix example project build (#604) 2 years ago
index.android.js Add android tests 5 years ago
index.js Add android tests 5 years ago
metro.config.js Add android tests 5 years ago
package.json chore: fix example project build (#604) 2 years ago
yarn.lock chore(deps): bump moment from 2.29.2 to 2.29.4 in /examples/detox (#545) 3 years ago

README.md

detox

React Native Demo Project

Requirements

  • Make sure you have Xcode installed (tested with Xcode 8.1-8.2).
  • make sure you have node installed (brew install node, node 8.3.0 and up is required for native async-await support, otherwise you'll have to babel the tests).
  • 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)

Step 1: Npm install

  • Make sure you're in folder examples/demo-react-native.
  • Run npm install.

To test Release build of your app

Step 2: Build

  • Build the demo project
detox build --configuration ios.sim.release

Step 3: Test

  • 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.

To test Debug build of your app

Step 2: Build

  • Build the demo project
detox build --configuration ios.sim.debug

Step 3: Test

  • start react-native packager
npm run start
  • 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.