You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Run single test
* Add options for code lens and verbosity
* Rename Pester options to enableLegacyCodeLens and outputVerbosity
* change to use
Co-authored-by: Tyler Leonhardt <tylerl0706@gmail.com>
if ($MinimumVersion5-and$pesterModule.Version-lt"5.0.0") {
82
+
Write-Warning"Pester 5.0.0 or newer is required because setting PowerShell > Pester: Enable Legacy Code Lens is disabled, but Pester $($pesterModule.Version) is loaded. Some of the code lense features might not work as expected."
83
+
}
84
+
85
+
86
+
if ($All) {
87
+
if ($pesterModule.Version-ge'5.0.0') {
88
+
$configuration=@{
89
+
Run=@{
90
+
Path=$ScriptPath
91
+
}
92
+
}
93
+
# only override this if user asks us to do it, to allow Pester to pick up
94
+
# $PesterPreference from caller context and merge it with the configuration
95
+
# we provide below, this way user can specify his output (and other) settings
96
+
# using the standard [PesterConfiguration] object, and we can avoid providing
0 commit comments