[tests] misc readme
This commit is contained in:
parent
4b0aee300c
commit
5387c45414
|
@ -23,6 +23,8 @@ Our tests are powered by [Jet ✈️](https://github.com/invertase/jet).
|
||||||
npm install -g detox-cli
|
npm install -g detox-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Step 1: Install test project dependencies
|
### Step 1: Install test project dependencies
|
||||||
|
|
||||||
NPM install at project root and also inside tests directory.
|
NPM install at project root and also inside tests directory.
|
||||||
|
@ -35,6 +37,8 @@ cd tests/ && npm i
|
||||||
cd tests/ios && pod install --repo-update
|
cd tests/ios && pod install --repo-update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Step 2: Start Build & Packager Scripts
|
### Step 2: Start Build & Packager Scripts
|
||||||
|
|
||||||
1. First, start the build script to compile the library and watch for changes;
|
1. First, start the build script to compile the library and watch for changes;
|
||||||
|
@ -55,6 +59,8 @@ cd tests/ && npm run packager-jet
|
||||||
|
|
||||||
> ⚠️ Also ensure that all existing packagers are terminated and that you have no React Native debugger tabs open on your browsers.
|
> ⚠️ Also ensure that all existing packagers are terminated and that you have no React Native debugger tabs open on your browsers.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Step 3: Build Native App
|
### Step 3: Build Native App
|
||||||
|
|
||||||
The first build for each platform will take a while. Subsequent builds are much much quicker ⚡️
|
The first build for each platform will take a while. Subsequent builds are much much quicker ⚡️
|
||||||
|
@ -73,7 +79,9 @@ cd tests/ && npm run build-android
|
||||||
cd tests/ && npm run build-ios
|
cd tests/ && npm run build-ios
|
||||||
```
|
```
|
||||||
|
|
||||||
### Step 4: Run the tests
|
---
|
||||||
|
|
||||||
|
### Step 4: Finally, run the tests
|
||||||
|
|
||||||
This action will launch a new simulator (if not already open) and run the tests on it.
|
This action will launch a new simulator (if not already open) and run the tests on it.
|
||||||
|
|
||||||
|
@ -107,6 +115,8 @@ Coverage is output to the root directory of the project: `react-native-firebase/
|
||||||
open `react-native-firebase/coverage/lcov-report/index.html` in your browser after running tests
|
open `react-native-firebase/coverage/lcov-report/index.html` in your browser after running tests
|
||||||
to view coverage output.
|
to view coverage output.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Running specific tests
|
### Running specific tests
|
||||||
|
|
||||||
Mocha supports the `.only` syntax, e.g. instead of `describe(...) || it(...)` you can use `describe.only(...) || it.only(...)` to only run that specific context or test.
|
Mocha supports the `.only` syntax, e.g. instead of `describe(...) || it(...)` you can use `describe.only(...) || it.only(...)` to only run that specific context or test.
|
||||||
|
|
Loading…
Reference in New Issue