![]() I use The Pester Book to on-board all my new members, so they start with a solid foundation in Pester and how it is used to test infrastructure and powershell module code. ![]() Note that the PDF is probably the "highest fidelity" version, especially in terms of code listings. The free sample includes sample chapters, but why bother? LeanPub has a no-questions-asked refund policy, so it's completely risk-free to grab the "real" book and see what you think.Īll LeanPub books are offered in PDF, MOBI, and EPUB, and you get all three with your purchase. You will find many different, specific use-cases in here and how to test for them. Part 5 will be more of a "cookbook," with recipes for testing specific types of situations. Part 4 will tackle code coverage, an important topic to help make sure you're testing all of your code but with some not-so-obvious gotchas, you need to watch out for. This part will introduce you to Gherkin, how it's different than Pester test design and how it integrates with Pester. Gherkin is another style of test writing that comes with Pester. This part will also cover using Pester for infrastructure validation in an "infrastructure from code" environment. Some of these will be "stream of consciousness," following the actual process someone might use to add or develop Pester tests. Part 2 will take that syntax and dig into the world of unit testing and test-driven development, through a series of real-world walkthroughs. It's enough to get you up and running if you're familiar with unit testing, or if you want to give Pester a spin. Part 1 covers the core syntax of Pester and introduces you to various possible use cases for the different syntax elements. We'll cover everything you need to know from knowing nothing about Pester and testing PowerShell scripts to becoming a testing master! Pester is a unit-testing framework for PowerShell, and perhaps the first open-source software product that ships with Windows itself! Author Adam Bertram will walk you through the Pester philosophy, syntax, and numerous real-world examples. "Pester is an important skill that every PowerShell user should master." - Jeffrey Snover, Creator of PowerShell
0 Comments
Leave a Reply. |