How we use Cypress with Azure Pipelines

By Frode Aarebrot

Elevator Pitch

Unlock the real power of Cypress E2E testing by setting up automated runs with your pipeline. We will start with nothing more than a basic Angular application with Cypress installed and end up with a pipeline very similar to what we have in our current environment.

Description

Unlock the real power of Cypress E2E testing by setting up automated runs with your pipeline. In this session we’ll take a look at how to create a new Azure Pipeline and have it execute the Cypress tests in your project. We will start with nothing more than a basic Angular application with Cypress installed and end up with a pipeline very similar to what we have in our current environment.

During the talk we’ll quickly explore how to separate configuration for different environments, how to publish test results to DevOps that your testers won’t hate, capturing screenshots/videos and attaching them to test runs (including some gotcha’s), and we’ll touch on running tests in parallel and automated scheduling.