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: site/content/contribute/more-info/mobile/e2e.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,15 +105,20 @@ This is the typical flow for CI test run:
105
105
brew install applesimutils
106
106
```
107
107
2.Set XCode's build location so that the built app, especially debug, is expected at the project's location instead of the Library's folder which is unique/hashed.
108
-
3. Open XCode, then go to **XCode > Preferences > Locations**.
108
+
3. Open XCode, then go to **XCode > Settings > Locations**.
109
109
4. Under **Derived Data**, click **Advanced...**.
110
110
5. Select **Custom > Relative to Workspace**, then set **Products** as **Build/Products**.
111
111
6. Click **Done** to save the changes.
112
112
113
113
##### Complete a test run in debug mode
114
114
115
-
1. In one terminal window, run `npm run ios` from the root folder.
116
-
2. In another terminal window, run `npm i` then `npm run e2e:ios-test` from the `/detox` folder.
115
+
1. In one terminal window, from the root folder run `npm run start` and on another `npm run ios` from the root folder.
116
+
2. Once the build is complete and installed, there will be a message informing of the path where the app is installed. Copy that path
117
+
3. Edit `/detox/.detoxrc` and
118
+
- In **apps > ios.debug**, substitute `binaryPath` by that value.
119
+
- In **devices > ios.simulator > device**, substitute `type` and `os` with the values corresponding to the ones being used by the simulator. If unsure wich ones, either open the simulator or go to Xcode to see where it is being built.
120
+
4. Export the values for `ADMIN_USERNAME` and `ADMIN_PASSWORD` with the appropiate values for your test server. Check the Environment Variables section below to learn more about default values and other variables available.
121
+
5. In another terminal window, run `npm i` then `npm run e2e:ios-test` from the `/detox` folder.
117
122
* For running a single test, follow this example command: `npm run e2e:ios-test -- connect_to_server.e2e.ts`.
0 commit comments