Skip to main content
Detox logo

Detox Product Review

CategoryMobile App Testing FrameworkFirst Released2017Official SiteDeploymentSelf-hosted
Licensing Model
Open Source
  • MIT license
  • Free to use forever
  • Maintained by Wix
  • Distributed via npm
  • Community contributions
Free Trial
Free & Open Source
  • No licensing costs
  • No paid tier or subscription
  • Installed as an npm package
  • Pay only for device or CI infrastructure
Maintainer
Wix
  • First released around 2017
  • Created by Tal Kol at Wix
  • Tel Aviv, Israel
  • 11,000+ GitHub stars
Ratings
  • G2N/A
  • GartnerN/A
  • CapterraN/A

Overview

Detox is an open-source, end-to-end testing framework purpose-built for React Native mobile apps. Tests are written in JavaScript or TypeScript and run against the app on a simulator, emulator, or device, driving the UI like a real user by launching the app, tapping elements, typing text, and asserting on what is visible. It is developed and maintained by Wix, was first released around 2017, and is currently on the 20.x line, with version 20.51.3 as the latest release.

The defining concept of Detox is gray-box synchronization. Unlike black-box tools that see the app only from the outside and rely on manual sleeps and polling, Detox has internal knowledge of the app and automatically synchronizes test execution with the app's idle state. Before performing the next action, it waits until the app has settled, monitoring in-flight network requests, the main thread, UI layout operations, timers, animations, and the React Native JavaScript and native-modules threads. This idle tracking is the mechanism that targets flakiness at its source.

Detox is for React Native developers and QA teams who want reliable, automated end-to-end tests for their RN apps, especially teams already in the JavaScript and Jest ecosystem who want tests in the same language as the app. Its core value is reduced flakiness through automatic synchronization, fast feedback on real device UI, and familiar tooling.

What makes Detox distinct is gray-box automatic synchronization rather than black-box waits, a React-Native-first design rather than a generic mobile driver, and the use of native testing technology under the hood to interact with the app only when idle. It was built by Wix to test React Native at scale.

Detox is free under the MIT license. Buyers should weigh its React Native focus, the historical limits of real iOS device support, the setup complexity, and the need for a special instrumented test build, against the stability it gains from synchronization. It is not a fit for Flutter or native-only apps.

Key Featuresโ€‹

Gray-box synchronizationโ€‹

Detox waits for the app to be idle across network, timers, animations, native operations, and React Native threads before each step. This eliminates manual sleeps and reduces flakiness.

JavaScript and TypeScript testsโ€‹

Tests are written in JavaScript or TypeScript, the same language as the React Native app. This lowers the context switch for RN developers.

Jest test runnerโ€‹

Jest is the officially recommended and integrated test runner. This fits the standard React Native testing toolchain.

Matchers, actions, and expectationsโ€‹

The API uses matchers such as by.id, actions such as tap and typeText, and expectations such as toBeVisible. This expresses tests clearly and concisely.

Cross-platform supportโ€‹

The same JavaScript test suite runs on both iOS and Android. This shares test logic across platforms.

Device control APIโ€‹

Device APIs include launchApp, reloadReactNative, openURL for deep links, setLocation, and permission control. This drives system-level behavior from tests.

Modern async and awaitโ€‹

The API uses async and await, so breakpoints in async tests behave as expected. This improves debugging.

Test artifactsโ€‹

Detox captures device logs, screenshots, screen recordings, and view hierarchies, controlled by record flags. These provide evidence for debugging failures.

Detox Instrumentsโ€‹

Detox Instruments integrates performance and timeline profiling. This surfaces performance data alongside functional tests.

Parallel executionโ€‹

Detox supports running multiple workers and devices in parallel through the Jest runner. This shortens execution time.

Tests can open URLs, handle deep links, and set permissions, location, and notifications at launch. This covers entry points and system prompts.

CI integrationโ€‹

Detox is designed to run in CI, with official guides for preparing and running on CI. This embeds tests into delivery pipelines.

Best Selling Pointsโ€‹

Gray-box synchronizationโ€‹

Automatic synchronization with the app's idle state removes flaky manual waits. This is the framework's signature differentiator.

Built for React Nativeโ€‹

Detox integrates deeply with React Native internals, including the bridge, JS thread, Animated, and layout. This makes it a first-class RN testing tool.

Fast on real UIโ€‹

Tests run on real simulator, emulator, or device UI through native drivers. This gives realistic, fast feedback.

JavaScript and Jestโ€‹

JavaScript and TypeScript with Jest are familiar to RN developers and match the app's language. This reduces the learning curve.

Rich debugging artifactsโ€‹

Logs, screenshots, videos, view hierarchies, and timeline data aid debugging. These make failures easier to diagnose.

Cross-platform from one suiteโ€‹

iOS and Android are covered from a single test suite. This consolidates RN testing.

Supported Integrationsโ€‹

Detox integrates with the React Native toolchain, Jest, CI/CD systems, and the JavaScript ecosystem.

Platforms

  • React Native
  • iOS
  • Android

Test Runner

  • Jest

CI/CD Platforms

  • GitHub Actions
  • CircleCI
  • GitLab CI/CD
  • Bitrise
  • Jenkins
  • Travis CI

Reporting

  • Jest reporters
  • JUnit XML (jest-junit)
  • Detox artifacts

Languages & Tooling

  • JavaScript
  • TypeScript
  • Node.js
  • Detox Instruments

Supported Platformsโ€‹

Detox is React Native focused and runs on iOS and Android, with JavaScript and TypeScript test code.

Detox targets React Native apps on iOS and Android, with JavaScript and TypeScript test code.

  • React Native
  • iOS
  • Android
  • JavaScript
  • TypeScript
  • Jest
  • Primary platform: React Native, with compatibility for recent RN versions including the New Architecture.
  • iOS: simulators are well supported, while real iOS device support has historically been limited.
  • Android: emulators and real devices, with real-device support more established than on iOS.
  • Languages: JavaScript and TypeScript.
  • Test runner: Jest, running on Node.js.
  • Not supported: Flutter and native-only apps are outside Detox's focus.

System Requirementsโ€‹

Detox installs as an npm package with a Node.js requirement and platform build tooling.

  • Node.js: required, since Detox is a Node and npm package and CLI.
  • React Native: a React Native app with a Detox-instrumented test build.
  • Platform tooling: Xcode for iOS simulators and the Android SDK for emulators.
  • Test runner: Jest configured with the Detox Jest runner.
  • Execution target: a simulator, emulator, or device, typically local or in CI.
  • Build step: a dedicated test build that links Detox into the app.

Architectureโ€‹

Detox uses a gray-box model that links into the app and synchronizes with its idle state.

  • Gray-box model: Detox has internal knowledge of the app and waits for it to be idle before each action.
  • Idle tracking: it monitors network requests, the main thread, UI layout, timers, animations, and React Native threads.
  • Native drivers: Detox drives the app through native testing technology on iOS and Android.
  • Test build: gray-box operation requires Detox to be linked into a dedicated test build of the app.
  • Node and Jest: test code runs on Node.js through the Jest runner.
  • Artifacts: the artifact system captures logs, screenshots, videos, and hierarchies during runs.

Scripting/Test Implementation Modelโ€‹

Detox is code-first, with tests authored in JavaScript or TypeScript using Jest.

  • Languages: JavaScript and TypeScript, with shipped type definitions.
  • Runner: Jest is the official runner, configured through the Detox Jest integration.
  • API: element queries with by.id, actions such as tap and typeText, and expectations such as toBeVisible.
  • Device control: launchApp, reloadReactNative, openURL, setLocation, and permission APIs.
  • Async model: async and await keep tests readable and debuggable.
  • Mocking: patterns exist for mocking network and notifications and for launch arguments.

Reportingโ€‹

Detox reports through Jest and its artifact system, with JUnit XML available through jest-junit.

Detox results are produced through Jest and the artifact system, then consumed by CI/CD pipelines and dashboards.

Supported Formats

Detox test results are exported through Jest and artifacts in the following formats.

  • XML / JUnitCI-friendly results via jest-junit
  • JSONJest result output
  • HTMLVia Jest reporter add-ons
  • JUnit XML is produced through the standard jest-junit reporter for CI consumption.
  • Detox artifacts double as reporting evidence, including screenshots, videos, device logs, and view hierarchies.
  • Console output is available during runs.
  • Artifact formats include log files, MP4 videos, and PNG screenshots, plus timeline data from Detox Instruments.

Observability Metricsโ€‹

  • Device logs: iOS syslog and Android logcat through the record-logs flag.
  • Screenshots: before and after each test through the take-screenshots flag.
  • Video: screen recordings through the record-videos flag, saved as MP4.
  • View hierarchy: snapshots help debug element matching, and Detox Instruments provides timeline data.

Security & Complianceโ€‹

  • Detox is MIT-licensed and runs locally or in your own CI, with no hosted Detox cloud service and no data sent to a vendor backend.
  • No security or compliance certifications apply, since Detox is not a hosted service.
  • Its security posture is that of any local development and test dependency, including standard npm supply-chain considerations.
  • The MIT license is permissive and business-friendly.

Releases and Maintenanceโ€‹

  • Current release: Detox 20.51.3 on the active 20.x line.
  • Maintenance: maintained by Wix with frequent releases on GitHub and npm.
  • Direction: a strong focus on React Native New Architecture support, recent iOS support, and stability and crash fixes.
  • Compatibility: recent React Native versions are fully compatible, with newer versions tested over time.

Pricingโ€‹

  • Detox is free and open source under the MIT license, with no paid tier or subscription.
  • It is installed as an npm package.
  • Costs only arise from the infrastructure used to run tests, such as CI runners, simulators, and emulators.

Usage and Industry Adoptionโ€‹

  • Detox has more than 11,000 GitHub stars and around 1,900 forks, reflecting wide adoption in the React Native community.
  • npm download data shows several hundred thousand weekly downloads.
  • It was built and is used by Wix to test its own React Native apps at scale.
  • No official third-party adopter list is published, so no specific named companies are claimed here.

Awards & Recognitionโ€‹

  • No formal industry awards were confirmed for Detox in this research.
  • Recognition is informal, as one of the most popular end-to-end testing options in the React Native ecosystem.

Strengthsโ€‹

  • Gray-box automatic synchronization that markedly reduces test flakiness.
  • A purpose-built React Native design with deep RN integration.
  • Fast execution on real simulator, emulator, and device UI through native drivers.
  • JavaScript and TypeScript with Jest, matching the app's language and tooling.
  • Strong debugging artifacts including logs, screenshots, videos, view hierarchies, and timeline data.

Limitationsโ€‹

  • React Native focused, with a weak fit for native-only iOS or Android, Flutter, or web apps.
  • Real iOS device support has historically been limited and simulator-centric.
  • Setup complexity, since environment, native build, and configuration can be involved.
  • It requires app instrumentation and a dedicated test build, which adds build pipeline work.
  • A narrower scope than Appium, with fewer platforms and a smaller surface.
  • Cloud device-farm support is limited, focusing on local and CI simulators and emulators.

Best Fit Scenariosโ€‹

  • React Native teams that need reliable, low-flakiness automated end-to-end tests.
  • JavaScript and TypeScript teams using Jest that want tests in the same language as the app.
  • Teams running end-to-end tests in CI on simulators and emulators.
  • Larger-scale React Native apps where flaky tests are a recurring pain.
  • Teams that can accept the extra build and instrumentation step in exchange for synchronization-based stability.