There’s no way around it: you need to test your code. It’s easy to assume your code has no flaws; it’s even easier to be proven wrong. When you test with Pester, you can stop assuming and start knowing.

Testing has been a feature of traditional software development for decades. But while concepts like unit, functional, integration, and acceptance testing may be familiar to seasoned software developers, they’re relatively new to scripters—those of us who want to automate with PowerShell but don’t hold a software engineer job title. Since many organizations are depending more on PowerShell code to run critical production systems, ...

Get PowerShell for Sysadmins now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.