diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 08747ddc3..2e83f67a9 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -122,8 +122,11 @@ jobs: $AggregateExitCode += $LastExitCode npm run test-unit-firefox $AggregateExitCode += $LastExitCode + if ($AggregateExitCode -ne 0) { + echo " " + Write-Error "Number of failed tests: $AggregateExitCode" + } echo " " - echo "Number of failed tests: $AggregateExitCode" exit $AggregateExitCode - name: End-to-end tests (Windows) @@ -144,19 +147,18 @@ jobs: echo " " Write-Verbose "Testing on Firefox..." -Verbose npx mocha ./tests/firefox.e2e.runner.js - "Exit code: $LastExitCode, $?" $AggregateExitCode += $LastExitCode echo " " Write-Verbose "Testing on IE11..." -Verbose npx mocha ./tests/ieMode.e2e.runner.js - "Exit code: $LastExitCode, $?" $AggregateExitCode += $LastExitCode echo " " if ($AggregateExitCode -gt 0) { Write-Error "Total number of failed tests: $AggregateExitCode" } else { - Write-Host "All tests passed!" + Write-Host "All e2e tests on Windows passed!" } + echo " " exit $AggregateExitCode # tests-unit-mac: