mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
This improves the performance of the listener by not relying on a new process starting up to run the listener. It improves the debugability of tests by providing more direct access to the session executing the listener. It also reverses the blocking nature of starting the listener. By default, Start-HttpListener will no longer block, you need to use -Foreground to have Start-HttpListener block. Lastly, create a way to catch errors if the listener has a problem. If code in the listener throws, it emits an error record.
Testing
The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./csharp. The sanity tests for the Full .NET build of PowerShell are in ./fullclr, and the third-party shebang test is in ./shebang.