Skip to content

MuckT/Detox-Testing-React-Native

Repository files navigation

Detox-Testing-React-Native

A sample of using Detox with React Native Sample App

Getting Started

Set Up Your Development Environment

  1. Follow this guide outlined to setup 'React Native CLI QuickStart'

  2. For Android see the Detox Guide Setting Up an Android Development & Testing Environment. The default avdName for this project is Pixel API 30.

App Setup

  1. Make a folder and navigate to it: mkdir detox-sample then cd detox-sample.

  2. Clone the repo git clone https://github.com/MuckT/Detox-Testing-React-Native.git.

  3. Navigate to the folder you cloned into and install the dev dependencies: yarn install.

Running the App

  1. Start the App: yarn start

  2. In a new terminal run yarn <android|ios> to run the application

Running Detox

  1. Create you Detox test build: Mac / Linux detox build -c <android|ios> OR Windows yarn win:build:detox

  2. Run the app

  3. Run Detox: yarn e2e:<android|ios>

Detox Video Sample

Detox-Sample

About

A sample of using Detox with React Native Sample App

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published