Skip to content

Pester support doesn't work for PowerShell 7 [Seems hardcoded to load module for legacy desktop framework] #136

@smaillet

Description

@smaillet

The VS2022 extensions installs pester (v3.4.0) which is ANCIENT and ONLY for "WindowsPowershell" so even when configuring settings for Windows 7 in the properties it still tries to load/run the VERY old version of pester, which doesn't support basic things like BeforeBuild outside of a "Describe" block etc... Installer should not install dependncies in a non-updatable form. Additionally, it should install the latest versions of them. (Pester is now at v5.7.1 and does work with Powershell 7.x)

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.5.0
PSEdition                      Core
GitCommitId                    7.5.0
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Without support for latest pester the test explorer (specifically the test runner) is just broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions