Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created September 17, 2024 14:05
Show Gist options
  • Save SarahElson/6b8bfbcec660bd46d64c9cb5ddbe7bc5 to your computer and use it in GitHub Desktop.
Save SarahElson/6b8bfbcec660bd46d64c9cb5ddbe7bc5 to your computer and use it in GitHub Desktop.
How To Run Cypress Tests In Azure DevOps Pipeline
# 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment