Unit testing PowerShell scripts with Pester

Posted: (EET/GMT+2)

 

If you are serious about your PowerShell scripting, you are probably thinking of writing unit tests (!) for your PowerShell scripts, just like you write them for traditional application code, such as C#. Now, PowerShell doesn't come with any built-in unit testing tool, but luckily, the community is here to help.

Enter Pester. Available from GitHub, this open-source tool allows you to write and run unit tests in the PowerShell environment.

Very cool indeed!