We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52a0096 commit 1c5476bCopy full SHA for 1c5476b
Extension/PesterTask/PesterV10/Pester.ps1
@@ -92,6 +92,7 @@ $PesterConfig = @{
92
Run = @{
93
Path = $TestFolder
94
Exit = $true
95
+ PassThrue = $true
96
}
97
TestResult = @{
98
Enabled = $true
@@ -142,6 +143,6 @@ if (-not([String]::IsNullOrWhiteSpace($ScriptBlock))) {
142
143
144
$result = Invoke-Pester -Configuration ([PesterConfiguration]$PesterConfig)
145
-if ($result.failedCount -ne 0) {
146
+if ($result.failedCount -gt 0) {
147
Write-Error "Pester returned errors"
148
0 commit comments