Skip to content

Files

Latest commit

6d265dc · May 13, 2019

History

History
This branch is 3979 commits behind wix/Detox:master.

demo-react-native

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 23, 2019
Apr 22, 2019
Apr 22, 2019
Mar 4, 2018
Mar 15, 2017
Mar 15, 2017
Mar 15, 2017
Mar 15, 2017
May 12, 2018
Sep 9, 2017
Sep 9, 2017
Mar 4, 2018
May 13, 2019
Aug 31, 2018

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.