GithubHelp home page GithubHelp logo

alimirzayev / detox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wix/detox

0.0 0.0 0.0 86.57 MB

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

Home Page: https://wix.github.io/Detox/

License: MIT License

Shell 0.76% JavaScript 66.92% Ruby 0.07% C 0.04% Objective-C 10.46% Java 6.99% Kotlin 9.45% TypeScript 0.79% Objective-C++ 0.26% Swift 3.69% SCSS 0.53% Starlark 0.06%

detox's Introduction

SWUbanner

Detox

Detox

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

Demo

NPM Version NPM Downloads Build status Coverage Status Detox is released under the MIT license PR's welcome! Discord Twitter Follow

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:

describe('Login flow', () => {
  it('should login successfully', async () => {
    await device.reloadReactNative();

    await element(by.id('email')).typeText('[email protected]');
    await element(by.id('password')).typeText('123456');
    await element(by.text('Login')).tap();

    await expect(element(by.text('Welcome'))).toBeVisible();
    await expect(element(by.id('email'))).toNotExist();
  });
});

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 cross-platform end-to-end tests in JavaScript. Currently supports iOS and Android.
  • 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 Versions

Environment

OS:

  • macOS: v10.15 (Catalina) or higher
    • Xcode: v11.0 or higher
    • iOS Simulator Runtime: iOS v13.0 or higher
  • Ubuntu linux: v20.04 or higher
  • Windows 10: Version 1803 or higher

React Native

Detox is built from the ground up to support React Native projects as well as pure native ones.

Detox works, at least officially, with the following React Native versions:

iOS Android
0.68.x - 0.70.7 0.68.x - 0.70.7 -
Visibility edge-case: see this RN issue

Newer versions, as well as React Native's "New Architecture", are most likely supported, but have not been tested out yet. Please submit an issue if you find specific problems with more recent React Native versions.

For support for React Native 0.71.x, please track this 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

Non-English Resources (Community)

detox's People

Contributors

leonatan avatar rotemmiz avatar d4vidi avatar noomorph avatar wixmobile avatar asafkorem avatar simonracz avatar danielmschmidt avatar bogobogo avatar jonathanmos avatar silyevsk avatar danielzlotin avatar moutro avatar orenzak avatar valentynberehovyi avatar etgarsh avatar yershalom avatar 0xflotus avatar doronpr avatar dassir avatar vonovak avatar igorgn avatar ofirdagan avatar yedidyak avatar omerwin avatar formatlos avatar jasonbariwix avatar quinlanj avatar yogevbd avatar limaaniceto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.