Testing Your PowerShell Scripts
Steven Murawski, Chef
Steven Murawski, Chef
![](https://www.usenix.org/sites/default/files/styles/speaker_photo/public/murawski_steven_100x115.jpg?itok=jPmmxzo7)
Steven is a Technical Community Manager for Chef and a Microsoft MVP in PowerShell. Steven is a co-host of the Ops All The Things podcast.
![](https://www.usenix.org/sites/all/modules/usenix/usenix_files/images/usenix-locked.png)
author = {Steven Murawski},
title = {Testing Your {PowerShell} Scripts},
year = {2014},
address = {Seattle, WA},
publisher = {USENIX Association},
month = nov
}
Shell scripts that run a production environment are just as critical, if not more so, than the software that runs in production. Our responsibility as professionals is to ensure that our scripts work as advertised. In this tutorial, we'll learn how to use Pester, a testing tool for PowerShell, to ensure functionality of our shell scripts.
If you've ever spent far too many hours on the weekend or overnight troubleshooting some PowerShell script that went off the rails, you should attend this tutorial. If you write PowerShell scripts that are intended to run in a production environment, you should attend this tutorial. If you write PowerShell scripts, you should attend this tutorial.
Attendees will take back an understanding of testing terminology and patterns. Attendees will learn how to write PowerShell scripts and functions in a testable manner. They will also have gained a familiarity with Pester, a testing tool for PowerShell.
- Types of testing and testing tools.
- Patterns for writing tests.
- Designing PowerShell scripts and functions to be testable.
- Using Pester, a testing framework for PowerShell.
connect with us