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
When session have any type of PSBreakpoint Pester becomes extremely slow even when the break point never gets activated and even when it's outside the test.
2. Describe Your Environment
Pester version : 4.8.1 D:\ILI\Profile\Documents\WindowsPowerShell\Modules\Pester\4.8.1\Pester.psd1
PowerShell version : 5.1.17763.592
OS version : Microsoft Windows NT 10.0.17763.0
3. Expected Behavior
Breakpoint will not effect preference.
4.Current Behavior
Set-PSBreakpoint-Variable NotEvenUsed
Describe 'Test' {
for ($i=0; $i-lt10; $i++) {
Context 'Context' {
It "10 Tests" {
1| Should -Be 1
}
}
}
}
Test with the Breakpoint takes ~20 Seconds, Without it it's less then ~100 Milliseconds
The text was updated successfully, but these errors were encountered:
Thank you for the report, this issue affects some builds of windows and is reported in issue #1318. It should currently be fixed in the latest beta of PowerShell 7 and later back-ported to PowerShell 5.1 (without any promises about when that will be done).
Thank you, Somehow didn't see this issue. I can confirm that with the Nightly version the test is only twice as slow for my code instead of 25 times slower 👍
1. General summary of the issue
When session have any type of PSBreakpoint Pester becomes extremely slow even when the break point never gets activated and even when it's outside the test.
2. Describe Your Environment
Pester version : 4.8.1 D:\ILI\Profile\Documents\WindowsPowerShell\Modules\Pester\4.8.1\Pester.psd1
PowerShell version : 5.1.17763.592
OS version : Microsoft Windows NT 10.0.17763.0
3. Expected Behavior
Breakpoint will not effect preference.
4.Current Behavior
Test with the Breakpoint takes ~20 Seconds, Without it it's less then ~100 Milliseconds
The text was updated successfully, but these errors were encountered: