feat: Android emulator integration test via Stalwart

Adds stalwart-dev/integration_android_test.sh which starts Stalwart on
random ports, detects a connected Android emulator via adb, sets
STALWART_IMAP_HOST=10.0.2.2 (emulator-to-host alias), and runs the
existing integration_test/ suite on the emulator.

Wires it up as `task integration-android` in Taskfile.yml.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Güttler
2026-04-25 06:13:38 +02:00
co-authored by Claude Sonnet 4.6
parent 71692665cc
commit 681e0c0167
3 changed files with 103 additions and 0 deletions
+6
View File
@@ -89,6 +89,12 @@ tasks:
cmds:
- stalwart-dev/test.sh
integration-android:
desc: UI integration tests on a connected Android emulator (Stalwart on host, emulator reaches it via 10.0.2.2)
deps: [_nix-check, _android-sdk-check]
cmds:
- stalwart-dev/integration_android_test.sh
build-linux:
desc: Build the Linux desktop app (debug)
deps: [_nix-check, _linux-deps-check, _pub-get]