You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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"'
237
237
238
238
- task: PublishTestResults@2
239
239
condition: always()
@@ -329,14 +329,14 @@ stages:
329
329
inputs:
330
330
command: ci
331
331
workingDir: 'tests/Umbraco.Tests.AcceptanceTest'
332
-
- task: Npm@1
332
+
- task: Bash@3
333
333
displayName: Run Cypress (Desktop)
334
334
condition: always()
335
335
continueOnError: true
336
336
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"'
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"'
0 commit comments