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. Detox is built from the ground up to support React Native projects as well as pure native ones. Read the Getting Started Guide to get Detox running on your app in less than 10 minutes. 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.
Features
- Write cross-platform tests in JavaScript. Currently supports iOS and Android
- Gain confidence to ship by testing your app on a device/simulator just like a real user
- Stops flakiness at the core by monitoring asynchronous operations in your app
- Execute your E2E tests on CI platforms like Travis without grief
- Use Jest, Mocha, AVA, or any other JavaScript test runner you like
- Modern async-await API allows breakpoints in asynchronous tests to work as expected