O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating Appium with Mocha

In this recipe, we will set up a new project to write our tests; we are going to use Mocha, chai, and the JavaScript Appium client to send commands to our device.

Getting ready

For this recipe, we will create a new repository for our automated tests. All the files and folders created here will not be on the same code base as our actual React Native app, it is going to be a completely different project.

How to do it...

  1. Let's start by creating a new folder for our project; we are going to have all our tests in here. Open the terminal, go to the new directory, and initialize the new node package with the following command:
            $ npm init 
    
  2. Now we need to install all the dependencies for this project. We are going to use npm for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required