You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,3 +109,39 @@ Please peruse the
109
109
[Typescript style guide](https://google.github.io/styleguide/tsguide.html), [Java style guide](https://google.github.io/styleguide/javaguide.html), and [Objective-C style guide](https://google.github.io/styleguide/objcguide.html) before
110
110
working on anything non-trivial. These guidelines are intended to
111
111
keep the code consistent and avoid common pitfalls.
112
+
113
+
## 6. Running tests
114
+
115
+
Google Maps React Native Navigation package has integration tests.
116
+
117
+
### Integration tests
118
+
119
+
Integration tests are responsible for ensuring that the plugin works against the native Navigation SDK for both Android and iOS platforms. Detox along with example application is used for the integration tests. "Integration tests must accompany the implementation of all new features.
120
+
To run the test you must first install and setup detox. Please follow the guide here:
Build the tests using detox-cli in the example folder:
124
+
125
+
iOS:
126
+
```bash
127
+
detox build --configuration ios.sim.release
128
+
```
129
+
130
+
Android:
131
+
```bash
132
+
detox build --configuration android.emu.release
133
+
```
134
+
135
+
Google Maps React Native Navigation SDK integration tests can be run with the following command:
136
+
137
+
iOS
138
+
```bash
139
+
yarn run example test:ios-release
140
+
```
141
+
142
+
Android:
143
+
```bash
144
+
yarn run example detox:test:android-release
145
+
```
146
+
147
+
When adding new tests, you need to first add the detox part in the [e2e folder](./example/e2e) and then the actual logical part of the test in the [integration tests page](./example/src/screens/IntegrationTestsScreen.tsx) of the example app.
0 commit comments