Skip to content

Commit

Permalink
Merge pull request umbraco#11496 from umbraco/v9/bugfix/cypress-strea…
Browse files Browse the repository at this point in the history
…ming-log-output

Use powershell / bash tasks instead of npm for acceptance tests

npm buffers output and flushes at end, which isn't ideal if cypress killed after an hour and we have no idea what happened.
  • Loading branch information
Paul Johnson authored Oct 26, 2021
2 parents 34be464 + b375d28 commit 9155329
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ stages:
inputs:
command: ci
workingDir: 'tests\Umbraco.Tests.AcceptanceTest'
- task: Npm@1
- task: PowerShell@2
displayName: Run Cypress (Desktop)
condition: always()
continueOnError: true
inputs:
workingDir: tests\Umbraco.Tests.AcceptanceTest
command: 'custom'
customCommand: 'run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"'
targetType: inline
workingDirectory: tests\Umbraco.Tests.AcceptanceTest
script: 'npm run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"'

- task: PublishTestResults@2
condition: always()
Expand Down Expand Up @@ -329,14 +329,14 @@ stages:
inputs:
command: ci
workingDir: 'tests/Umbraco.Tests.AcceptanceTest'
- task: Npm@1
- task: Bash@3
displayName: Run Cypress (Desktop)
condition: always()
continueOnError: true
inputs:
workingDir: tests/Umbraco.Tests.AcceptanceTest
command: 'custom'
customCommand: 'run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"'
targetType: inline
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
script: 'npm run test -- --reporter junit --reporter-options "mochaFile=results/test-output-D-[hash].xml,toConsole=true" --config="viewportHeight=1600,viewportWidth=2560,screenshotsFolder=cypress/artifacts/desktop/screenshots,videosFolder=cypress/artifacts/desktop/videos,videoUploadOnPasses=false"'
- task: PublishTestResults@2
condition: always()
inputs:
Expand Down

0 comments on commit 9155329

Please sign in to comment.