Cypress Installation & Setup | SDET Unicorns

In this Cypress testing tutorial, we will be doing the setup and installation on the local machine to get Cypress up and running for you. One of the great things about Cypress is that using just one command you can get all the necessary packages installed to start writing your first test using Cypress. Let’s take a look at that –

Installation

To install Cypress locally, you need to run through the following steps –

This will download and unzip the Cypress desktop client and install all the necessary packages for you.


Opening Cypress Desktop App

Once Cypress is installed, you can open the Cypress desktop app by running the following command –

npx cypress open

This will open up the Cypress app for you and list all the initial pre-built tests –

Screen Shot 2021 04 05 at 4.11.27 AM

Run tests in Cypress Test Runner

Click on any of the pre-built example test and it will launch up the Cypress Test Runner and start running all the tests –

Cypress Test Runner

Cypress Folder Structure

When you install Cypress, it will setup the folder structure for you automatically –

Screen Shot 2021 04 05 at 4.20.38 AM

Check out the video below to see how to Setup & Install Cypress in your local machine –


I hope this post helped you out, let me know if you have any questions in the comments below!

Happy testing! 

Leave a Reply

Your email address will not be published. Required fields are marked *