From 886d185e6fb5883dcba9f3db55446568158311f7 Mon Sep 17 00:00:00 2001 From: dfinke Date: Wed, 4 Jul 2018 08:54:18 -0400 Subject: [PATCH] report # of tests correctly --- DoTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DoTests.ps1 b/DoTests.ps1 index 3b0951a..cd03a46 100644 --- a/DoTests.ps1 +++ b/DoTests.ps1 @@ -7,5 +7,5 @@ if ((Get-Module -ListAvailable pester) -eq $null) { $result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru if ($result.FailedCount -gt 0) { - throw "$($FailedCount) tests failed." + throw "$($result.FailedCount) tests failed." } \ No newline at end of file