TMW05 Make Your PowerShell Scripts Bulletproof with Pester


9:30am - 10:45am

Level: Introductory

Melissa Januszko

Technology Architect

Cerner Corporation

Unleashing automation in a production environment can be scary. After all, programmers are human. Sometimes they make mistakes. Code failures become more expensive as a piece of code moves further along the development pipeline, and can result in loss of data, time, and business. Testing early and often in the development stages can alleviate these fears. Pester is a built–in PowerShell testing framework in Windows 10 and Windows Server 2016. In this introductory session, you will learn how to get started writing Pester tests—even before writing your code—to ensure the quality of your PowerShell scripts and functions.

You will learn:

  • What is test–driven development and why it is important
  • How to write the test first and the code second
  • How to write a simple Pester test
  • How to graduate from simple tests to more advanced tests