talira

Gray-box end-to-end testing framework for React Native apps on iOS and Android

open sourceMITfree

Detox is Wix's open source end-to-end testing and automation framework for React Native apps. Tests are written in JavaScript with an async/await API and drive the app on an iOS simulator or an Android emulator or device the way a user would: finding elements by ID, text or label, typing, tapping and asserting on what's visible. It's gray-box rather than black-box: Detox monitors the app's asynchronous operations and waits for it to be idle before each step, which removes most of the flakiness of mobile UI tests. It runs on CI services such as CircleCI, Travis CI and Jenkins, works with any test runner and has Jest integration built in. Detox officially supports React Native 0.77 to 0.84 with the New Architecture and is MIT-licensed.

Problems it solves

  • write end-to-end tests for our React Native app that run on iOS and Android
  • our mobile UI tests are flaky because they don't wait for the app to finish loading
  • run React Native E2E tests on CI on simulators and emulators
  • test a React Native login flow like a real user would, with Jest

Features

  • end-to-end tests in JavaScript with async/await
  • iOS simulators and Android emulators and devices
  • automatic synchronization with the app's asynchronous work
  • matchers by ID, text and label; typing, tapping and visibility assertions
  • runs on CI (CircleCI, Travis CI, Jenkins)
  • test runner agnostic, with built-in Jest integration
  • supports React Native's New Architecture

Alternatives

The same job

These do what Detox does.

  1. Maestro Mobile UI testing at agentic velocity
  2. Appium Cross-platform test automation for native, hybrid, mobile web and desktop apps
  3. e2e Agentic end-to-end testing framework for web and mobile apps: describe a goal in plain words and an agent drives the app
  4. Nightwatch.js Node.js end-to-end testing framework on the W3C WebDriver API
  5. agent-device Lets coding agents drive apps on phones, simulators and TVs

Compare Detox with the top 3