-
-
Notifications
You must be signed in to change notification settings - Fork 476
Closed
Description
1. General summary of the issue
The posh-git module uses this VSCode task command to run its Pester tests and it fails on 5.0 with the missing parameter error:
04-05 12:08:33 13> Invoke-Pester test -PesterOption @{IncludeVSCodeMarker=$true}
Invoke-Pester: A parameter cannot be found that matches parameter name 'PesterOption'.
2. Describe Your Environment
Pester version : 5.0.0 C:\Users\Keith\Documents\PowerShell\Modules\Pester\5.0.0\Pester.psd1
PowerShell version : 7.0.0
OS version : Microsoft Windows NT 10.0.18363.0
3. Expected Behavior
Sort of expected Pester to continue to support this parameter.
4.Current Behavior
Errors because the parameter is no longer supported.
5. Possible Solution
Seems like Pester would still support some of these invocation options like IncludeVSCodeMarker=$true
where the output is in a guaranteed form that the VSCode extension with its $Pester problem matcher can find error info like message, file, line.
6. Context
Running posh-git Pesters tests from the PowerShell 7 console. Just testing how these tests behave on Pester v5.