Detox A year in. Building it, Testing with it
summary
Detox is gray-box end-to-end testing for React Native that embeds code in the app and synchronizes on real idle state instead of relying on sleeps. It extends EarlGrey and Espresso via a JSON reflection protocol so Node tests invoke native methods and assertions run inside the app process. Tests stop being intermittently flaky (0.5% per-test flakiness gives ~22% flaky suites for 50 tests) and parallel runs cut a single-simulator 520s suite to about 243s.
AI-written summary · about
chapters (18)
- 0:00Detox introduction
- 1:07Why Wix chose React Native
- 3:40Flaky end-to-end tests problem
- 6:49Black-box testing fails
- 7:10Detox gray-box testing
- 9:17Detox native synchronization
- 11:45Detox architecture
- 13:12Live demo
- 13:54Production vs mocked tests
- 16:46Mocking server endpoints
- 19:00Mocking in Detox tests
- 21:07Predictability in testing
- 22:13Detox impact on features
- 23:43Detox in CI/QA
- 25:15Parallel testing gains
- 26:17Recording test artifacts
- 27:02Performance monitoring
- 28:29Detox future plans
related talks
24mDetox A year in. Building it, Testing with it
20mDetox A year in. Building it, Testing with it
26mSend your app to rehab - Testing React Native apps with Detox
31mDetox: Tackling the Flakiness of Mobile Automation
30mTesting & React Native"Lessons from the Battlefield"
40mReact Native is Coming – the story of hybrid mobile application testing
20mMeet my new friend: Testing
16mReact Native end-to-end testing with Maestro
