PSSecurityException when running Import-Module Pester #2595
|
Hi, I am new to Pester, and also dev on Windows in general. I am trying to use Pester to run tests on a different repo that I am working on, I seem to get the following error each time: I am using Windows Powershell. I have tried installing Pester from the PSGallery as well as from chocolatey, I get the same error. I also tried 5.6.0 from chocolatey to no avail. Could someone kindly provide any pointers? More info about my Shell: EDIT: I subsequently tried Powershell, and can now invoke Pester. That does unblock me, but still can't get Pester to work on Windows Powershell. |
Replies: 2 comments 6 replies
|
That's weird. Could you verify that it's loading the same module in both Windows PowerShell and PowerShell? One might have been modified. Does |
|
The files in 5.6.x have a broken signature, that is why Tracked in #2596. |
The files in 5.6.x have a broken signature, that is why
AllSignedexecution policy refuses to load them. We could not fix the already published versions, 5.7.0 and newer are signed correctly, so updating Pester fixes it.Tracked in #2596.