How to Install Cypress.io Automation Test Framework

Here is a guide on how to install the Cypress.io framework on your local machine so you can start automating the testing of your online application.

Before we get started…

You will need to ensure that your machine meets the required system requirements, below are the required operating systems:

  • Apple: MacOS 10.9+  (Mavericks +), only 64bit available.
  • Linux: Ubuntu 12.04+, Fedora 21 or Debian 8, only 64bit available.
  • Windows: 7+, only 32bit available.

In this example I will be using Terminal to install the framework.

I will provide a Windows example in the future.

1. Install NPM (NodeJS)

Before we can install the Cypress.io framework we need to install NPM (NodeJS) as the default way is to install it using the NPM package.

Please see below the two options on how to install NPM:

2. Installing Cypress.io Framework

Now our machines are ready for us to install Cypress.io, in this tutorial we will be using the Terminal (Mac / Linux) to carry out the installation.

We can install the Cypress.io framework very easily.

Let's begin...

  1. Open the Terminal app
  2. Navigate to your project: cd path/to/your/project
  3. Install Cypres.io, type: npm install cypress --save-dev
  4. Launch Cypress.io: ./node_modules/.bin/cypress open

Please see below a video showing exactly what should have happened...

{
    "123123": ""
}

Now you are up and running, the Cypress.io framework is installed and you can start producing test cases.

#

AuthorShaun Swales

Web developer turned QA Software Engineer.