Created
September 17, 2024 14:05
-
-
Save SarahElson/6b8bfbcec660bd46d64c9cb5ddbe7bc5 to your computer and use it in GitHub Desktop.
How To Run Cypress Tests In Azure DevOps Pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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