Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

Detox

> 前端框架
Open source

Gray box end-to-end testing and automation framework for mobile apps

12.0K stars0 likes1 views
WebsiteGitHub

About

Gray box end-to-end testing and automation framework for mobile apps

Detox

Gray box end-to-end testing and automation framework for mobile apps.

[](https://www.npmjs.com/package/detox) [](https://buildkite.com/wix-mobile-oss/detox) [](https://coveralls.io/github/wix/Detox?branch=master) [](LICENSE) [](https://wix.github.io/Detox/docs/contributing) [](https://discord.gg/CkD5QKheF5) [](https://twitter.com/detoxe2e)

What Does a Detox Test Look Like?

This is a test for a login screen, it runs on a device/simulator like an actual user:

javascript
describe('Login flow', () => {
  beforeEach(async () => {
    await device.reloadReactNative();
  });

  it('should login successfully', async () => {
    await element(by.id('email')).typeText('[email protected]');
    await element(by.id('password')).typeText('123456');

    const loginButton = element(by.text('Login'));
    await loginButton.tap();

    await expect(loginButton).not.toExist();
    await expect(element(by.label('Welcome'))).toBeVisible();
  });
});

Get started with Detox now!

About

High velocity native mobile development requires us to adopt continuous integration workflows, which means our reliance on manual QA has to drop significantly. Detox tests your mobile app while it’s running in a real device/simulator, interacting with it just like a real user.

The most difficult part of automated testing on mobile is the tip of the testing pyramid - E2E. The core problem with E2E tests is flakiness - tests are usually not deterministic. We believe the only way to tackle flakiness head on is by moving from black box testing to gray box testing. That’s where Detox comes into play.

  • Cross Platform: Write end-to-end tests in JavaScript for React Native apps (Android & iOS).
  • Debuggable: Modern async-await API allows breakpoints in asynchronous tests to work as expected.
  • Automatically Synchronized: Stops flakiness at the core by monitoring asynchronous operations in your app.
  • Made For CI: Execute your E2E tests on CI platforms like Travis CI, Circle CI or Jenkins without grief.
  • Runs on Devices: Gain confidence to ship by testing your app on a device/simulator just like a real user (not yet supported on iOS).
  • Test Runner Agnostic: Detox provides a set of APIs to use with any test runner without it. It comes with Jest integration out of the box.

Supported React Native Versions

Detox was built from the ground up to support React Native projects.

While Detox should work out of the box with any React Native version of the latest minor releases, the official versions compatibility is provided according to the following:

  • RN v0.77.x - v0.84.x: Fully compatible with React Native's "New Architecture". Newer RN versions might work with Detox, but they've not been thoroughly tested by the Detox team yet.

Although we do not officially support older React Native versions, we do our best to keep Detox compatible with them.

In case of a problem with an unsupported version of React Native, please submit an issue or write us in our Discord server and we will do our best to help out.

Known Issues with React Native

  • Visibility edge-case on Android: see this RN issue.

Get Started with Detox

Read the Getting Started Guide to get Detox running on your app in less than 10 minutes.

Documents Site

Explore further about using Detox from our new website.

Core Principles

We believe that the only way to address the core difficulties with mobile end-to-end testing is by rethinking some of the principles of the entire approach. See what Detox does differently.

Contributing to Detox

Detox has been open-source from the first commit. If you’re interested in helping out with our roadmap, please see issues tagged with the label. If you have encountered a bug or would like to suggest a new feature, please open an issue.

Dive into Detox core by reading the Detox Contribution Guide.

License

  • Detox is licensed under the MIT License

Non-English Resources (Community)

  • Getting Started (Brazilian Portuguese)

Issues· 210 open

View all issuesOpen on GitHub
  • #4978

    XCode 27 - Device Hub replaces Simulator

    type: bug 🐞platform: iosstatus: triageUpdated Sep 20, 2026
  • #4977

    Instrumentation._onTerminated is an async EventEmitter listener — a rejecting termination callback kills the Jest process

    Updated Sep 14, 2026
  • #4975

    iOS: WebView - Typing in a input without maxLength fails

    type: bug 🐞platform: iosstatus: triageUpdated Sep 10, 2026
  • #4963

    FabricUIManagerIdlingResources.getMountItemDispatcher throws NoSuchFieldException on RN 0.85.3 (bridgeless / New Architecture)

    Updated Sep 3, 2026
  • #4973

    Android: network synchronization misses OkHttp clients created outside NetworkingModule (all traffic invisible on Expo SDK 56+)

    Updated Sep 3, 2026
  • #4966

    iOS: intermittent deadlock between DTXSyncManager and JSTimerSync dispatch queues (currentStatus hangs indefinitely)

    Updated Aug 18, 2026
  • #4968

    Add HarmonyOS (OpenHarmony) platform support — 61/61 e2e verified

    type: enhancement ⚡️status: triageUpdated Aug 13, 2026
  • #4970

    [Android] longPressAndDrag silently drags from (0,0) when normalized positions are NaN

    Updated Aug 12, 2026
  • #4969

    iOS formSheet presentation: content not visible in Detox's view hierarchy

    Updated Aug 11, 2026
  • #4967

    Android API 37 emulator: Detox fails during app launch in beforeAll with Espresso NoSuchMethodException

    type: bug 🐞platform: androidstatus: triageUpdated Jul 23, 2026

> Tags

JavaScriptandroidautomatione2e-testshacktoberfest

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架