Testing your Code; an Introduction to Pester

By Bradley Wyatt

Elevator Pitch

Pester is a testing framework and that can be used to automate the testing of your PowerShell code. We’ve all heard the “it works on my machine” line. With Pester we can ensure our PowerShell code will work correctly no matter the machine.

Description

In this course, you will learn: - How to write a Pester test - Pester syntax and layout - Mocking with Pester - Develop your code by writing the tests first

Notes

I currently write at my blog - The Lazy Administrator. I have been writing Pester tests at work - mostly with my Azure deployments and configuration but also my custom functions.