Skip to content

Commit 9155329

Browse files
author
Paul Johnson
authored
Merge pull request #11496 from umbraco/v9/bugfix/cypress-streaming-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.
2 parents 34be464 + b375d28 commit 9155329

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

build/azure-pipelines.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,14 +226,14 @@ stages:
226226
inputs:
227227
command: ci
228228
workingDir: 'tests\Umbraco.Tests.AcceptanceTest'
229-
- task: Npm@1
229+
- task: PowerShell@2
230230
displayName: Run Cypress (Desktop)
231231
condition: always()
232232
continueOnError: true
233233
inputs:
234-
workingDir: tests\Umbraco.Tests.AcceptanceTest
235-
command: 'custom'
236-
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"'
234+
targetType: inline
235+
workingDirectory: tests\Umbraco.Tests.AcceptanceTest
236+
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"'
237237

238238
- task: PublishTestResults@2
239239
condition: always()
@@ -329,14 +329,14 @@ stages:
329329
inputs:
330330
command: ci
331331
workingDir: 'tests/Umbraco.Tests.AcceptanceTest'
332-
- task: Npm@1
332+
- task: Bash@3
333333
displayName: Run Cypress (Desktop)
334334
condition: always()
335335
continueOnError: true
336336
inputs:
337-
workingDir: tests/Umbraco.Tests.AcceptanceTest
338-
command: 'custom'
339-
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"'
337+
targetType: inline
338+
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
339+
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"'
340340
- task: PublishTestResults@2
341341
condition: always()
342342
inputs:

0 commit comments

Comments
 (0)