diff --git a/build.ps1 b/build.ps1 index 1b220f1..26576d6 100644 --- a/build.ps1 +++ b/build.ps1 @@ -176,7 +176,7 @@ if (!$SkipTests) { $testResult = Invoke-Pester ./Tests/*.Tests.ps1 -Output Normal -PassThru Write-Host "" - if ($testResult.FailedCount -eq 0) { + if (($testResult.FailedCount + $testResult.FailedBlocksCount + $testResult.FailedContainersCount) -eq 0) { Write-Host "✓ All $($testResult.PassedCount) tests passed" -ForegroundColor Green } else { Write-Host "✗ $($testResult.FailedCount) tests failed" -ForegroundColor Red