From c707848eff33ecb1f68d2a33a1f554a84f636061 Mon Sep 17 00:00:00 2001 From: dfinke Date: Wed, 4 Jul 2018 08:48:10 -0400 Subject: [PATCH] testing to fail the appveyor build --- DoTests.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/DoTests.ps1 b/DoTests.ps1 index bf8f3bf..3b0951a 100644 --- a/DoTests.ps1 +++ b/DoTests.ps1 @@ -4,4 +4,8 @@ if ((Get-Module -ListAvailable pester) -eq $null) { Install-Module -Name Pester -Repository PSGallery -Force } -Invoke-Pester -Script $PSScriptRoot\__tests__ \ No newline at end of file +$result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru + +if ($result.FailedCount -gt 0) { + throw "$($FailedCount) tests failed." +} \ No newline at end of file