About the Book
"Pester is an important skill that every PowerShell user should master."
- Jeffrey Snover, Creator of PowerShell
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 in this "Agile-published" book.
Part 1, which is complete as a v1 release, covers the core syntax of Pester, and introduces you to various possible use cases for the different syntax elements. 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 2 will take that syntax and dig into the world of unit testing and Test-Driven Development, through a series of real-world walkthroughs. Some of these will be "stream of consciousness," following the actual process someone might use to add or develop Pester tests. This Part will also cover using Pester for infrastructure validation in an "infrastructure from code" environment.
Part 3 will introduce you to Gherkin. Gherkin is another style of test writing that comes with Pester. This part will introduce you to Gherkin, how it's different than Pester test design and how it integrates with Pester.
Part 4 will tackle cover coverage, an important topic to help make sure you're testing all of your code.
Part 5 will be more of a "cookbook," with recipes for testing specific types of situations. This will probably be one area of the book that we continually build over time, based in large part on reader feedback.
Chapters in these parts will be released as we write them, so you won't need to wait for an entire part to be completed. And, I'll continue to expand and revise released chapters based on reader feedback - which is very welcome! Readers who purchase the book are notified of how to contact the authors directly, and you can also reach out on Twitter @adbertram.
See the Contents
Use the "Table of Contents" link to see the complete table of contents for the full book. This does change and evolve as I work on the book.
I Publish as I Go
This is an Agile-published book, which means the author is releasing it as it's written, and will continue to update the book as the underlying technology evolves over time. This is the last book you'll ever need to buy on this topic, because your one-time purchase grants you lifetime access to updates and new content. I'll even email you via LeanPub (if you opt-in) when there's fresh content for you.
Check Out the Free Sample
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.
What Formats are Available?
All LeanPub books are offered in PDF, MOBI, and EPUB, and you get all three with your purchase. Note that the PDF is probably the "highest fidelity" version, especially in terms of code listings.
How Can I Contact the Author?
I love feedback. Use the "Email the Author" link, just below, to contact me. For feedback on the book, please provide a chapter, heading, and short snippet of text to let me know where you're looking - page numbers don't do any good, as they don't correspond with our source files.
About the Author
Adam Bertram is an Senior Automation Engineer, technical writer, trainer, and presenter. Adam specializes in consulting and evangelizing all things IT automation. Adam is a Microsoft Windows Cloud and Datacenter Management MVP focused on the PowerShell language and various DevOps tooling in the Microsoft ecosystem. He authors IT pro course content for Pluralsight, is a regular contributor to numerous print and online publications and presents at various user groups and conferences.