DuPSUG December 2021 - Online
More info here
When writing PowerShell code it’s easy to make small mistakes. For example, renaming a variable but forgetting one occurrence, or using an unapproved verb in a function name. To combat these errors there is a tool called PSScriptAnalyzer which can do a lot of the code quality checks for you. But in the day and age of collaboration and continuous deployment it’s not good enough anymore to just run this utility separate. In this talk Leo Visser will show you how you can use the testing framework Pester to have these code quality checks be integrated in your tests. Besides the basics the talk will also cover how to exempt some files from some rules and how to manage this.