How we raised mobile end-to-end test stability to 98%
Shopify rebuilt its mobile end-to-end test framework as an opinionated wrapper over Appium, raising test stability from 50% to 98% and returning the suite to blocking PR checks. The wrapper exposes a small builder-style API where every action must carry an assertion that is validated as false before the step and true after. Escape hatches like custom timeouts and Test IDs are prefixed UNSAFE_. Elements are located visually rather than through the view hierarchy: PaddleOCR finds text, and OpenCV matches grayscale Polaris SVG icons, including color-inverted variants and multiple sizes, using adjacency to tell duplicates apart. Annotated run videos, a single CLI for local and remote device-farm runs, and a pre-promotion gate that reruns new tests before admitting them to CI round out the approach.
Related posts
- Achieving Test Reliability for Native E2E Testing: Beyond Fixing Broken Tests
Docker mediumAdeptPatching flaky native E2E tests one by one failed to improve reliability over more than a year. Historical failure analysis showed much of the noise came from unstable environments and shared test account state. The fix was infrastructure: isolated pre-prod or ephemeral environments, standardized containerized emulators, fresh test accounts per session, and mocked feature-flag and A/B responses. On the process side it recommends feature-based test ownership with a single point of contact per flow, remotely muting known-flaky tests, enriched alerts and tracked flakiness trends, plus a hybrid setup running Dockerized Android emulators on PRs and real device farms periodically.
- Introducing native E2E testing: Learnings from the Senior Engineering Program for Women
Klarna Engineering mediumAdeptKlarna introduced native end-to-end testing for iOS and Android mini versions of its app, aiming to replace much of the weekly manual release testing with automated feature regression tests in CI pipelines. The work ran as a project in the company's Senior Engineering Program for Women. Technical hurdles included TypeScript globals from Jest and jQuery colliding with Mocha/Appium syntax, which were resolved by excluding Appium folders from the global tsconfig and giving co-located test folders their own extending configs. Moving the tests into the monorepo root also caused duplicate sub-dependency conflicts flagged by Diglett. Beyond the tooling, the post covers the six-month program's coaching, networking and career impact, and argues that such initiatives open opportunities otherwise limited by unconscious bias.
- Handling Flaky Tests at Scale: Auto Detection & Suppression
Slack Engineering mediumAdeptSlack's mobile DevXp team cut CI test job failures from 57% of failing builds to under 5% by automating flaky test detection and suppression across 27,000+ iOS and Android tests. A first approach filtered flaky results using a per-test failure threshold over recent main-branch history, and it quickly raised build stability. It was rolled back because broken new tests and failed fixes leaked into main, and CI depended on a backend. The second approach suppresses test execution on the main branch only. It detects failures (excluding infra, crash and API failures), maps each test to an owning team, files a Jira ticket, then opens and auto-merges a PR that disables the test.
- Artsy Mobile 2025 Wrapped
Artsy Engineering mediumAdeptArtsy's React Native apps (Eigen, Folio, Palette Mobile) adopted Expo and over-the-air updates after VS App Center's retirement, and all three moved to the new architecture. Navigation was consolidated on react-navigation, cutting navigate latency from 320ms to 70ms, and push notifications were unified with Notifee. Screen TTI dropped below 100ms through minimal queries, speculative prefetching, query splitting and Cloudflare CDN caching of shared query results. Other wins include building Android only for arm64-v8a, which cut build time by 75%, a move from CircleCI to GitHub Actions, Maestro E2E tests in CI, and Rozenite debugger plugins.
- How GitHub reduced testing time for iOS apps with new runner features
GitHub Engineering mediumAdeptGitHub's iOS team cut CI testing time by 60%, from 38 to 15 minutes, by moving to Apple silicon M1 macOS runners (macos-14-xlarge) and splitting a single monolithic build-and-test job into per-module jobs across roughly 60 first-party modules. Small modules finish in 2-3 minutes, and failures are easier to isolate. The team also split each module's CI into separate build and test steps with xcodebuild's build-without-testing and test-without-building to find slow tests. Matching CI and laptop architecture lets engineers reproduce architecture-specific failures locally, and the team fans out 50 concurrent jobs per pull request.