File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -105,9 +105,19 @@ if ($All) {
105
105
}
106
106
Pester\Invoke-Pester - Configuration $configuration | Out-Null
107
107
}
108
- else {
108
+ elseif ($pesterModule.Version -ge ' 3.4.5' ) {
109
+ # -Show was introduced in 3.4.5
109
110
Pester\Invoke-Pester - Script $ScriptPath - PesterOption @ {IncludeVSCodeMarker = $true } - Show $pester4Output
110
111
}
112
+ elseif ($pesterModule.Version -ge ' 3.4.0' ) {
113
+ # -PesterOption was introduced before 3.4.0, and VSCodeMarker in 4.0.3-rc,
114
+ # but because no-one checks the integrity of this hashtable we can call all of the versions
115
+ # down to 3.4.0 like this
116
+ Pester\Invoke-Pester - Script $ScriptPath - PesterOption @ {IncludeVSCodeMarker = $true }
117
+ }
118
+ else {
119
+ Pester\Invoke-Pester - Script $ScriptPath
120
+ }
111
121
}
112
122
elseif (($LineNumber -match ' \d+' ) -and ($pesterModule.Version -ge ' 4.6.0' )) {
113
123
if ($pesterModule.Version -ge ' 5.0.0' ) {
You can’t perform that action at this time.
0 commit comments