better appveyor test (#5739)

This commit is contained in:
William Cheng 2020-03-29 12:55:22 +08:00 committed by GitHub
parent 57dc8a43f6
commit 53a230a9a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 3 deletions

View File

@ -9,4 +9,9 @@ install:
- ps: Install-Module Pester -Force -Scope CurrentUser
build: off
test_script:
- ps: Invoke-Pester -EnableExit
- ps: |
$Result = Invoke-Pester -PassThru
if ($Result.FailedCount -gt 0) {
$host.SetShouldExit($Result.FailedCount)
exit $Result.FailedCount
}

View File

@ -1 +1 @@
4.3.0-SNAPSHOT
4.3.1-SNAPSHOT

View File

@ -15,4 +15,9 @@ install:
- ps: Install-Module Pester -Force -Scope CurrentUser
build: off
test_script:
- ps: Invoke-Pester -EnableExit
- ps: |
$Result = Invoke-Pester -PassThru
if ($Result.FailedCount -gt 0) {
$host.SetShouldExit($Result.FailedCount)
exit $Result.FailedCount
}