react-native-firebase/tests-new
Salakar 6b8556ef7c [wip] new testing infra 2018-03-23 14:26:11 +00:00
..
android [wip] new testing infra 2018-03-23 14:26:11 +00:00
e2e start of new testing infra 2018-03-23 13:40:07 +00:00
firebase [wip] new testing infra 2018-03-23 14:26:11 +00:00
ios start of new testing infra 2018-03-23 13:40:07 +00:00
.babelrc [wip] new testing infra 2018-03-23 14:26:11 +00:00
.buckconfig start of new testing infra 2018-03-23 13:40:07 +00:00
.editorconfig [wip] new testing infra 2018-03-23 14:26:11 +00:00
.eslintrc [wip] new testing infra 2018-03-23 14:26:11 +00:00
.flowconfig start of new testing infra 2018-03-23 13:40:07 +00:00
.gitignore start of new testing infra 2018-03-23 13:40:07 +00:00
.watchmanconfig start of new testing infra 2018-03-23 13:40:07 +00:00
README.md [wip] new testing infra 2018-03-23 14:26:11 +00:00
app.js start of new testing infra 2018-03-23 13:40:07 +00:00
index.android.js start of new testing infra 2018-03-23 13:40:07 +00:00
index.js start of new testing infra 2018-03-23 13:40:07 +00:00
package.json [wip] new testing infra 2018-03-23 14:26:11 +00:00
rn-cli.config.js start of new testing infra 2018-03-23 13:40:07 +00:00

README.md

React Native Firebase - Testing 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 7.6.0 and up is required.
  • 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)
    • appleSimUtils
    • detox-cli npm install -g detox-cli

Step 1: Npm install

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