Clear the app before every on-device run, as !122 said it did #151

Merged
paulhitt merged 1 commits from fix/instrumented-script-reaches-main into main 2026-09-11 16:21:46 +00:00
1 Commits
Author SHA1 Message Date
Paul HittandClaude Opus 5 945897a742 Clear the app before every on-device run, as !122 said it did
!122 described this change and did not contain it. Its commit carries
only SignUpFlowTest.kt; the script edit stayed in the working tree,
because the file is tracked as `scripts/` and was staged as `Scripts/`,
the same file on a case-insensitive disk. The on-device run that passed
used the uncommitted script, so the pass was real and main never had
the fix behind it.

The fix itself is unchanged from what !122 described. The uninstall used
to run only when the emulator was already up, on the reasoning that a
cold boot starts clean. A cold boot starts with no snapshot; the disk
image keeps whatever was installed. An AVD used to try a release build
kept that build, and the debug test APK could not install over it:
INSTALL_FAILED_UPDATE_INCOMPATIBLE, zero tests run. It now clears on
both paths and refuses to continue if anything survives.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 12:14:44 -04:00