diff --git a/powershell/resources/assets/test-module.ps1 b/powershell/resources/assets/test-module.ps1 index 8cb568fd8d..8d35a592b9 100644 --- a/powershell/resources/assets/test-module.ps1 +++ b/powershell/resources/assets/test-module.ps1 @@ -67,10 +67,10 @@ try $testFolder = Join-Path $PSScriptRoot '${$lib.path.relative($project.baseFolder, $project.testFolder)}' if ($null -ne $TestName) { - Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit:(-not $NotIsolated) -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") + Invoke-Pester -Script @{ Path = $testFolder } -TestName $TestName -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") } else { - Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit:(-not $NotIsolated) -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") + Invoke-Pester -Script @{ Path = $testFolder } -ExcludeTag $ExcludeTag -EnableExit -OutputFile (Join-Path $testFolder "$moduleName-TestResults.xml") } } Finally { @@ -80,4 +80,4 @@ try } } -Write-Host -ForegroundColor Green '-------------Done-------------' \ No newline at end of file +Write-Host -ForegroundColor Green '-------------Done-------------'