---
title: "Achieving Test Reliability for Native E2E Testing: Beyond Fixing Broken Tests"
description: "Patching flaky native E2E tests one by one failed to improve reliability over more than a year."
url: "https://swe.quest/articles/achieving-test-reliability-for-native-e2e-testing-beyond-fixing-broken-tests-4213c64569bcb860"
canonical: "https://www.docker.com/blog/native-e2e-test-reliability/"
source: "Docker"
published: "2026-03-13"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 8
tags: ["testing","mobile","ci-cd","containers"]
---

# Achieving Test Reliability for Native E2E Testing: Beyond Fixing Broken Tests

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-03-13, 8 min read, Opinion. Original: [https://www.docker.com/blog/native-e2e-test-reliability/](https://www.docker.com/blog/native-e2e-test-reliability/)

## Summary

Patching 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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)

## Prerequisites

- end-to-end testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- mobile app CI pipelines ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))

## Keywords

docker-android, Appium, Espresso, BrowserStack, Docker

## Related posts

- [Introducing native E2E testing: Learnings from the Senior Engineering Program for Women](https://swe.quest/articles/introducing-native-e2e-testing-learnings-from-the-senior-engineering-program-37b92032e83ba596.md): Klarna Engineering · 2023-09-08 · Medium · 8 min read · Testing, Mobile, TypeScript, Engineering culture
  Klarna 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.
- [How we raised mobile end-to-end test stability to 98%](https://swe.quest/articles/how-we-raised-mobile-end-to-end-test-stability-to-98-ca68fcd3c9f171ff.md): Shopify Engineering · 2026-08-12 · Medium · 6 min read · Testing, Mobile, CI/CD, Computer vision, React
  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.
- [Handling Flaky Tests at Scale: Auto Detection & Suppression](https://swe.quest/articles/handling-flaky-tests-at-scale-auto-detection-suppression-77980e444545e1fa.md): Slack Engineering · 2022-04-05 · Medium · 14 min read · Testing, CI/CD, Mobile, Developer productivity
  Slack'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.
- [Mobile Developer Experience at Slack](https://swe.quest/articles/mobile-developer-experience-at-slack-f2b2b79d74a881fd.md): Slack Engineering · 2022-10-12 · Medium · 14 min read · Developer productivity, Mobile, CI/CD, Testing, Build systems
  A dedicated mobile Developer Experience team grew from 3 to 8 engineers and cut CI feedback time and failure rates by targeting the pain points that surveys, NPS and metrics like time to merge showed hurt developers most. iOS test time fell from about 50 minutes to an average of 9 by moving from Xcodebuild to Bazel with disk caching and bazel-diff, so only affected targets are tested.
- [How we rebuilt the Shopify app in 12 weeks](https://swe.quest/articles/how-we-rebuilt-the-shopify-app-in-12-weeks-08ae147088c9e21e.md): Shopify Engineering · 2026-11-10 · Medium · 15 min read · AI for coding, Mobile, Refactoring & migrations, Developer productivity, Code review
  Thirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
