If anyone's not yet aware, Pester recently released a new major version: 5.0. This comes with a slew of breaking changes and some fancy new functionality, and some pretty solid performance improvements to boot. A user in the PowerShell Discord server recently came across some tests written for Pester v4 that they wanted to refactor for use in Pester v5. I decided to take a thorough look, and it proved to be quite a bit more complicated than I'd initially expected, mainly due to the way the tests were written.
A simple yet extremely thorough introduction to PowerShell, built using Pester's testing syntax. Enjoy a guided and helpful foray into the strange little quirks and helpful features of PowerShell!
- PowerShell's Tokenizer
Shane and I take a dive through the underbelly of PowerShell Core, examining the language tokenizer and what makes it tick. Join us as we get hopelessly lost and confused, and I show you how to add complex number parsing to PowerShell Core, because why not?
Create masterful works of art from vast swathes of text. Use it for your scripts, your books, your essays, that random text file you downloaded from god only knows where last week!
- 2020-05-30 — ScriptBlocks and GetNewClosure()
- 2020-02-24 — Handling PowerShell's Versatile Subexpressions
- 2020-02-15 — Building Arrays and Collections in PowerShell