We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e76e07 + eff620f commit 4fa4cc2Copy full SHA for 4fa4cc2
Extension/PesterTask/PesterV10/Pester.ps1
@@ -131,6 +131,9 @@ if ($CodeCoverageOutputFile) {
131
}
132
133
if (-not([String]::IsNullOrWhiteSpace($ScriptBlock))) {
134
+ if (Test-Path $ScriptBlock) {
135
+ $ScriptBlock = Get-Content -Path $ScriptBlock -Raw
136
+ }
137
$ScriptBlockObject = [ScriptBlock]::Create($ScriptBlock)
138
139
$ScriptBlockObject.Invoke()
Extension/PesterTask/PesterV9/Pester.ps1
@@ -134,6 +134,9 @@ elseif ($CodeCoverageOutputFile -and (Get-Module Pester).Version -lt [Version]::
140
141
142
0 commit comments