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
|`BACKEND=local` (default) | Local docker stack (Bitcoin RPC on localhost:18443, Electrum on localhost:60001) | Apps built with `BACKEND=local`|
96
+
|`BACKEND=regtest`| Blocktank API over the internet (remote regtest) | Apps built with `BACKEND=regtest`|
97
+
98
+
> ⚠️ **The `BACKEND` must match how the app was built.** If the app connects to remote electrum, use `BACKEND=regtest`. If it connects to localhost, use `BACKEND=local`.
99
+
85
100
```bash
86
-
# Run all tests on Android
101
+
# Run all tests on Android (local backend - default)
87
102
npm run e2e:android
88
103
104
+
# Run all tests on Android (regtest backend)
105
+
BACKEND=regtest npm run e2e:android
106
+
89
107
# Run all tests on iOS
90
108
npm run e2e:ios
109
+
BACKEND=regtest npm run e2e:ios
91
110
```
92
111
93
112
To run a **specific test file**:
94
113
95
114
```bash
96
115
npm run e2e:android -- --spec ./test/specs/onboarding.e2e.ts
116
+
117
+
# With regtest backend
118
+
BACKEND=regtest npm run e2e:android -- --spec ./test/specs/migration.e2e.ts
97
119
```
98
120
99
121
To run a **specific test case**:
@@ -142,19 +164,25 @@ These helper scripts wrap the regular `npm run e2e:*` commands and add CI-friend
142
164
The Android script will:
143
165
144
166
- Clear and capture `adb logcat` output into `./artifacts/logcat.txt`.
145
-
- Reverse the regtest port (`60001`).
167
+
- Reverse the regtest port (`60001`) for local backend.
146
168
- Run the Android E2E tests.
147
169
- Forward any arguments directly to Mocha/WebdriverIO.
148
170
149
171
**Usage examples:**
150
172
151
173
```bash
152
-
# Run all Android tests (with logcat capture)
174
+
# Run all Android tests with local backend (default)
153
175
./ci_run_android.sh
154
176
177
+
# Run all Android tests with regtest backend (for apps built with BACKEND=regtest)
178
+
BACKEND=regtest ./ci_run_android.sh
179
+
155
180
# Run only @backup tests
156
181
./ci_run_android.sh --mochaOpts.grep "@backup"
157
182
183
+
# Run migration tests (typically need regtest backend for RN app)
0 commit comments