Chapter 1: Installing and Setting Up Cypress
Cypress is an end-to-end test automation framework built and engineered for modern web applications. It focuses on eliminating inconsistencies in tests by ensuring that you can write, debug, and run tests on the browser without needing additional configuration or additional packages. Cypress works as a standalone application and can be installed on macOS, Unix/Linux, and Windows operating systems either using Hyphenate applications or command-line tools. Cypress was mainly built for developers who write their applications using JavaScript because it can be used to test all applications that run on a browser. In this chapter, we are going to cover the following topics:
- Installing Cypress on Windows
- Installing Cypress on macOS
- Installing Cypress via direct download
- Opening the Cypress test runner
- Switching Cypress browsers
- Adding npm scripts
- Running Cypress tests
By the end of this chapter, you will...