Skip to content

Commit 70575dc

Browse files
committed
Update failed check to count failed blocks instead of using failedcount property
1 parent 7eaedde commit 70575dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/PesterTask/PesterV10/Pester.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@ if (-not([String]::IsNullOrWhiteSpace($ScriptBlock))) {
138138

139139
$result = Invoke-Pester -Configuration ([PesterConfiguration]$PesterConfig)
140140

141-
if ($Result.FailedCount -gt 0) {
141+
if ($Result.Failed.Count -gt 0) {
142142
Write-Error "Pester Failed at least one test. Please see results for details."
143143
}

0 commit comments

Comments
 (0)