try using npx
This commit is contained in:
@@ -173,7 +173,7 @@ stages:
|
||||
errorActionPreference: 'continue'
|
||||
workingDirectory: 'src\Umbraco.Tests.AcceptanceTest'
|
||||
script: |
|
||||
.\node_modules\.bin\cypress run --reporter=junit --reporter-options="mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="videoUploadOnPasses=false,viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos"
|
||||
npx cypress run --reporter=junit --reporter-options="mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="videoUploadOnPasses=false,viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos"
|
||||
- task: PowerShell@2
|
||||
displayName: Run Cypress (Tablet portrait)
|
||||
inputs:
|
||||
@@ -181,7 +181,7 @@ stages:
|
||||
errorActionPreference: 'continue'
|
||||
workingDirectory: 'src\Umbraco.Tests.AcceptanceTest'
|
||||
script: |
|
||||
.\node_modules\.bin\cypress run --reporter=junit --reporter-options="mochaFile=results/test-output-T-[hash].xml,toConsole=true" --config="videoUploadOnPasses=false,viewportHeight=1366,viewportWidth=1024,screenshotsFolder=cypress/artifacts/tablet/screenshots,videosFolder=cypress/artifacts/tablet/videos"
|
||||
npx cypress run --reporter=junit --reporter-options="mochaFile=results/test-output-T-[hash].xml,toConsole=true" --config="videoUploadOnPasses=false,viewportHeight=1366,viewportWidth=1024,screenshotsFolder=cypress/artifacts/tablet/screenshots,videosFolder=cypress/artifacts/tablet/videos"
|
||||
- task: PowerShell@2
|
||||
displayName: Run Cypress (Mobile protrait)
|
||||
inputs:
|
||||
@@ -189,7 +189,7 @@ stages:
|
||||
errorActionPreference: 'continue'
|
||||
workingDirectory: 'src\Umbraco.Tests.AcceptanceTest'
|
||||
script: |
|
||||
.\node_modules\.bin\cypress run --reporter=junit --reporter-options="mochaFile=results/test-output-M-[hash].xml,toConsole=true" --config="videoUploadOnPasses=false,viewportHeight=812,viewportWidth=375,screenshotsFolder=cypress/artifacts/mobile/screenshots,videosFolder=cypress/artifacts/mobile/videos"
|
||||
npx cypress run --reporter=junit --reporter-options="mochaFile=results/test-output-M-[hash].xml,toConsole=true" --config="videoUploadOnPasses=false,viewportHeight=812,viewportWidth=375,screenshotsFolder=cypress/artifacts/mobile/screenshots,videosFolder=cypress/artifacts/mobile/videos"
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: 'JUnit'
|
||||
|
||||
Reference in New Issue
Block a user