Update testing.md

This commit is contained in:
Michael Diarmid 2017-07-04 17:35:00 +01:00 committed by GitHub
parent 1494ed8db9
commit c24b3e897c
1 changed files with 1 additions and 28 deletions

View File

@ -290,29 +290,7 @@ If you need to access the web API for Firebase to compare with the functionality
> All tests should be written in terms of `react-native-firebase`'s behaviour and should **not** include direct comparisons with the web API. It's available for reference, only.
## Development
### Running test suite against latest version of react-native-firebase
You can use the node module `wml` to automatically copy changes you make to `react-native-firebase` over to the test application so you can run the test suite against them.
1. Install `wml` globally:
```bash
npm install wml -g
```
2. Configure `wml` to copy changes from `react-native-firebase` to `react-native-firebase/tests/node_modules/react-native-firebase` is:
```bash
wml add /full/path/to/react-native-firebase /full/path/to/react-native-firebase/tests/node_modules/react-native-firebase
```
3. Start `wml`:
```bash
wml start
```
## Development Notes
> JavaScript changes require restarting the React Native packager to take effect
@ -320,11 +298,6 @@ wml start
> Objective-C changes need to be rebuilt in Xcode
4. Stop `wml` when you are finished:
```bash
wml stop
```
### Debugging or viewing internals of the test suite
`react-native-firebase/tests` is compatible with [react-native-debugger](https://github.com/jhen0409/react-native-debugger) and is the recommended way to view the internal state of the test suite for development or troubleshooting.