Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Learn to run Cypress tests in Azure DevOps pipelines with this guide. Discover setup steps, test scenarios, and enhance your CI/CD workflows.

Kailash Pathak
January 11, 2026
This article is a part of our Content Hub. For more in-depth resources, check out our content hub on Cypress Tutorial.
Traditional software development models like Waterfall have given way to DevOps, which enhances collaboration between development and operations teams. This shift enables faster, more reliable updates and integrates continuous feedback into the development cycle.
With cloud platforms like Azure, AWS, and GCP supporting various automated testing tools, integrating Cypress tests in Azure DevOps pipeline provides a streamlined solution for automating tests. This integration helps ensure high code quality and accelerates deployment, meeting the growing demands for rapid, reliable software delivery.
Running Cypress tests in an Azure DevOps pipeline automates end-to-end testing within your CI/CD workflow, ensuring faster feedback and higher code quality. Integrating cloud platforms enables scalable, cross-browser test execution with real-time reporting.
Why Run Cypress Tests in Azure DevOps?
Integrating Cypress tests into Azure DevOps enables seamless automation within your CI/CD workflow.
Setting Up Cypress Tests in Azure DevOps Pipeline
To get started, set up a dedicated pipeline for Cypress testing:
This setup enables repeatable, automated test execution every time code changes are committed.
Running Cypress Tests in Azure DevOps Pipeline
Once configured, the pipeline runs Cypress tests automatically on every commit or pull request. Tests can be executed in headless mode for speed, with results logged and visual reports generated for analysis.
Running Cypress Tests in Azure DevOps Pipeline on Cloud
Integrating cloud platforms like TestMu AI allows Cypress tests to run across multiple browsers and operating systems in parallel. This ensures better scalability, faster execution, and comprehensive test coverage.
Cypress is a popular end-to-end testing framework that can be integrated into Azure DevOps to enhance your CI/CD workflows. Integrating Cypress tests in Azure DevOps helps automate the testing process, improving the efficiency and reliability of your CI/CD workflows.
Below are some of the benefits of running Cypress tests in Azure DevOps.
Note: Run your Cypress tests across 3000+ browsers and OS combinations. Try TestMu AI Now!
To explain how you can set up Cypress in Azure DevOps pipeline to run test cases, we will be using a typical e-commerce site, TestMu AI eCommerce Playground.
You can follow the steps mentioned below to create a new Cypress project:
Step 1: Create a folder and generate package.json.
Step 2: Install Cypress.
Run this command in the newly created folder to install Cypress.
npm install cypress —save-dev
yarn add cypress --dev
This will install Cypress locally as a dev dependency for your project.
Cypress version 9.2.0 is reflected once this is installed, as seen below. The most recent version of Cypress is 13.13.2.
{
"name": "cypress_lambdatest",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"cy:report": "cypress run"
},
"author": "Kailash Pathak",
"license": "ISC",
"devDependencies": {
"cypress": "^9.2.0"
}
}
Step 3: Once you have added the Cypress dependencies, you must create a new folder named cypress_lambdatest under the integration folder. Again, inside the cypress_lambdatest folder, create another folder named lambdatest.
Within the lambdatest folder, create the following test spec files:
With Cypress installed, let’s proceed to understand how Cypress works by demonstrating a simple test scenario.
Test Scenario:
Add the following test script to the login_searchproduct.spec.js file you created earlier. This script handles logging into the application, searching for a product, and verifying that the correct product is displayed after the search.
it("Open the Url", () => {
cy.visit(
"https://ecommerce-playground.lambdatest.io/index.php?route=account/login"
);
});
it("Login into the application", () => {
cy.get('[id="input-email"]').type("[email protected]");
cy.get('[id="input-password"]').type("lambdatest");
cy.get('[type="submit"]').eq(0).click();
});
it("Search the Product", () => {
cy.get('[name="search"]').eq(0).type("VAIO");
cy.get('[type="submit"]').eq(0).click();
});
it("Verify Product after search ", () => {
cy.contains("Sony VAIO");
});

Below is the complete code walkthrough for the above test script.
Code Walkthrough:
Let’s look into another test scenario to further understand how Cypress works, focusing on functionalities like scrolling and clicking.
Test Scenario:
< Add the following test script to the ScrollAnd_ClickProduct.spec.js file you created earlier. This script handles logging into the application, scrolling through the product list, clicking on a product, and verifying that the correct product is displayed after the click.
it("Open the Url", () => {
cy.visit(
"https://ecommerce-playground.lambdatest.io/index.php?route=account/login"
);
});
it("Login into the application", () => {
cy.get('[id="input-email"]').type("[email protected]");
cy.get('[id="input-password"]').type("lambdatest");
cy.get('[type="submit"]').eq(0).click();
});
it("Click on Lambdatest Logo", () => {
cy.get('[title="Poco Electro"]').click();
cy.wait(5000);
});
it("Scroll to the bottom and Click on product 'Nikon D300' ", () => {
cy.get('[title="Nikon D300"]').eq(0).scrollIntoView().click();
});
Below is the complete code walkthrough for the above test script.
Code Walkthrough:
Now that you understand how Cypress works, let’s move on to running Cypress tests in Azure DevOps pipeline. First, let’s understand the basics of DevOps and its core components.
In the traditional Software Testing Life Cycle(SDLC), QA teams had to wait for code deployments to test functionality and give final approval. With modern cloud platforms like Azure DevOps, this process is streamlined. Azure Pipelines automate code deployment and testing, running the pipeline automatically whenever code is pushed.
To integrate Cypress with Azure DevOps Pipelines, follow these steps:
By setting up this integration, you ensure consistent, quality code is delivered rapidly to users.
To get started with running Cypress tests in Azure DevOps Pipelines, let’s look at the prerequisites to run Cypress tests in Azure DevOps Pipeline.
Once you have the prerequisites in place to get started to run the Cypress tests in Azure DevOps Pipeline, you must follow the below steps to create and set up the Azure DevOps pipeline.
Azure DevOps Pipeline Process:
As you click on Save and Run, the Job starts executing.
While Azure DevOps Pipelines is a CI server that automates the build and deployment process of your web apps, cloud testing platforms like TestMu AI offer easy integration to run Cypress tests in Azure DevOps pipelines.
You can leverage the TestMu AI cloud to enhance Cypress’s capabilities. TestMu AI allows you to run tests in parallel, integrate with various other CI/CD tools, and build a robust pipeline for seamless Cypress automation.
TestMu AI is an AI-powered test execution platform that enables testers to perform both manual web testing and automated browser testing at scale across 3,000+ browsers, operating systems, and device emulators. It supports manual web testing as well as automated browser testing.
With TestMu AI, you can execute and analyze Cypress test scripts online as part of the build process. It enables continuous testing, building, and deploying of iterative code changes, helping catch failures early in the development cycle and addressing them before reaching production.
On this platform, you can perform Cypress UI testing on various browsers and versions, including headless browsers. In addition to Cypress, TestMu AI also offers Selenium automation testing through the Azure Marketplace.
To simplify, let’s execute the test scenarios mentioned earlier in this blog, showing how to run Cypress tests in the Azure DevOps pipeline and run them in parallel on TestMu AI’s Cypress Grid.
Before getting started with Cypress and integrating the Azure DevOps pipeline with TestMu AI, ensure you have the following information in place.
The steps to integrate Azure Pipelines with TestMu AI and run Cypress tests in the Azure DevOps pipeline are explained below.
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
trigger:
- master
pool:
vmImage: ubuntu-latest
variables:
LT_USERNAME: "<LT_USERNAME>"
LT_ACCESS_KEY: "<LT_ACCESS_KEY>"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: |
npm install
npm install -g lambdatest-cypress-cli
npm run cy:report
displayName: "npm install and Run Cypress test case in lambdatest cloud"
Yaml file explanation:
Next, by using the lambdatest-config file, you need to provide the credential, run_setting, and browser with the version in which you want to run your test cases.
{
"lambdatest_auth": {
"username": "<username>",
"access_key": "<access_key>"
},
"browsers": [
{
"browser": "Chrome",
"platform": "Windows 10",
"versions": ["latest"]
},
{
"browser": "Chrome",
"platform": "Windows 10",
"versions": ["latest-1"]
},
{
"browser": "Firefox",
"platform": "Windows 10",
"versions": ["latest"]
},
{
"browser": "Firefox",
"platform": "Windows 10",
"versions": ["latest-1"]
}
],
"run_settings": {
"cypress_config_file": "cypress.json",
"build_name": "build-name",
"parallels": 4,
"specs": "./cypress/integration/lambdatest/*.spec.js",
"ignore_files": "",
"feature_file_suppport": false,
"network": false,
"headless": false,
"reporter_config_file": "",
"npm_dependencies": {
"cypress": "9.2.0"
}
},
"tunnel_settings": {
"tunnel": false,
"tunnel_name": null
}
}
For demonstrating the test scenario mentioned earlier, we will be using Cypress version 9.2.0. You can also use the same setup with the latest Cypress version, 13.13.2. Simply update the version in your configuration from “cypress”: “9.2.0” to “cypress”: “13.13.2”.
Azure DevOps Pipeline Process:
Result:
In the screenshot below, you can see test cases start running in four browsers parallelly (Browser details given above in File: lambdatest-config.json).

In the screenshot below, you can see the test cases are passed in Firefox, and in Chrome browser, test cases are running.

In the screenshot below, you can see that both test cases are passed in different browsers.

Here are the logs that are generated when the test cases are run successfully.


In the screenshot below, you can see that video products are loading.

In the screenshot below, you can see after scrolling to the bottom product is clicked.

To learn more about Cypress and running Cypress tests on TestMu AI, watch the video given below.
You can also subscribe to the TestMu AI YouTube Channel to get more video tutorials on Selenium testing, cross browser testing, and more.
Integrating Cypress tests in Azure DevOps pipelines offers a streamlined, efficient way to enhance your CI/CD workflows. By automating end-to-end tests, ensuring scalability, and providing centralized reporting, this setup not only improves code quality but also accelerates software delivery. Leveraging platforms like TestMu AI further enhances the testing process, enabling parallel execution across different browsers and devices ensuring reliable and robust software development.
Did you find this page helpful?
More Related Hubs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance