Coder Social home page Coder Social logo

jhen0409 / detox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wix/detox

0.0 3.0 0.0 7.02 MB

Gray Box E2E Tests and Automation Library for Mobile Apps

Home Page: https://github.com/wix/detox/blob/master/docs/README.md

License: MIT License

Shell 0.86% JavaScript 51.45% Java 27.77% Objective-C 15.99% Swift 3.69% Python 0.25%

detox's Introduction

Detox

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

NPM Version Build Status NPM Downloads

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 expect(element(by.id('email'))).toBeVisible();
      
    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();
  });
  
});

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 tests in JavaScript. Currently supports iOS, Android is nearly complete. View the Android status page.
  • Runs on Devices: Gain confidence to ship by testing your app on a device/simulator just like a real user.
  • Automatically Synchronized: Stops flakiness at the core by monitoring asynchronous operations in your app.
  • React Native Support: Built from the ground up to support React Native projects as well as pure native ones.
  • Made For CI: Execute your E2E tests on CI platforms like Travis without grief.
  • Test Runner Independent: Use Mocha, AVA, or any other JavaScript test runner you like.
  • Debuggable: Modern async-await API allows breakpoints in asynchronous tests to work as expected.

Getting Started

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

Documentation

Learn everything about using Detox from the documentation.

See it in Action

Open the React Native demo project and follow the instructions.

Not using React Native? we have a pure native demo project too.

Rethinking 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

Open source from the first commit. If you're interested in helping out with our roadmap or you have a new feature to suggest, contact us and we'd love to get you on board.

Dive into Detox core by reading the Detox Contribution Guide.

License

  • Detox by itself and all original source code in this repo is MIT
  • Detox relies on some important dependencies, their respective licenses are:

detox's People

Contributors

aarongreenwald avatar arnonz avatar bogobogo avatar brentvatne avatar danielmschmidt avatar danielzlotin avatar dassir avatar doronpr avatar etgarsh avatar formatlos avatar gantman avatar hanwax avatar isnifer avatar joshuapinter avatar kureev avatar leonatan avatar moox avatar niryo avatar ofirdagan avatar pietropizzi avatar rotemmiz avatar silyevsk avatar simonracz avatar xcarpentier avatar yedidyak avatar yogevbd avatar

Watchers

 avatar  avatar  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.