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 c09da746b0 bugfix: fadeToColor none 4 years ago
..
android Bugfix: Prevent NullpointerException for some locales by using hard coded formats (#204) 5 years ago
e2e fix datetime order pattern for vi-vn locale (#228) 5 years ago
ios Add android tests 5 years ago
src bugfix: fadeToColor none 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
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 Removed dependency to moment.js (#242) 4 years ago
yarn.lock Bump lodash from 4.17.15 to 4.17.19 in /examples/detox 5 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.