{
  "id": 4512869,
  "title": "We Don't Merge Red: Shifting E2E Tests Left in Mobile Development",
  "url": "https://urgent.news/2026/08/30/we-dont-merge-red-shifting-e2e-tests-left-in-mobile-development",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-08-30T16:16:18.000Z",
  "source": {
    "name": "HackerNoon",
    "slug": "hackernoon",
    "url": "https://hackernoon.com/we-dont-merge-red-shifting-e2e-tests-left-in-mobile-development?source=rss"
  },
  "original_language": "en",
  "account": "In the world of mobile development, testing is typically performed after a feature has been shipped to production. This approach often leads to bugs being discovered only after release, resulting in lost revenue and wasted time spent on debugging and fixing issues. To address this problem, the concept of Shift-Left has emerged. Shift-left moves testing earlier in the development stages, allowing for earlier detection and resolution of issues.\n\nThe article focuses on implementing Shift-left for end-to-end (e2e) automated mobile app testing, specifically using the Detox framework for React Native apps. The app is tested locally and in CI on both Android and iOS platforms. However, the project faces challenges such as long development processes, failing tests, CI queues, and developer doubts.\n\nTo overcome these challenges, the following solutions are proposed:\n1. Extend the development process by properly documenting the testing setup, providing training for developers, and demonstrating test coverage and debugging techniques.\n2. Ensure that the test suite in the main branch is always green (100% pass rate). Identify and fix any flaky tests, ensuring they are independent of other factors such as other tests, user actions, time, or time zones.\n3. Use pull requests (PRs) to block merges if tests are red, ensuring that only passing tests are merged into the main branch.\n4. Encourage developers to write tests together with the features they are implementing, ideally in the same PR where the broken test is located.\n\nBy implementing these solutions, the project can effectively shift testing left, catching bugs earlier in the development process, reducing technical debt, and improving the overall quality of the mobile application.",
  "summary": "A practical look at moving mobile E2E tests into pull requests, using Detox, CI gates, impact analysis, and QA review to catch bugs earlier.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}