https://github.com/agrublev/demo-react-native-testing
https://github.com/agrublev/demo-react-native-testing
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/agrublev/demo-react-native-testing
- Owner: agrublev
- Created: 2019-11-15T18:06:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T00:56:48.000Z (over 3 years ago)
- Last Synced: 2025-02-15T06:41:27.792Z (over 1 year ago)
- Language: JavaScript
- Size: 1.47 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> 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
```sh
detox build --configuration ios.sim.release
```
### Step 3: Test
* Run tests on the demo project
```sh
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
```sh
detox build --configuration ios.sim.debug
```
### Step 3: Test
* start react-native packager
```sh
npm run start
```
* Run tests on the demo project
```sh
detox test --configuration ios.sim.debug
```
This action will open a new simulator and run the tests on it.