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.
We'll cover everything you need to know from knowing nothing about Pester and testing PowerShell scripts to becoming a testing master!
Part 1 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 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.
Part 5 will be more of a "cookbook," with recipes for testing specific types of situations. You will find many different, specific use-cases in here and how to test for them.
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 or feel free to reach out to me on Twitter @adbertram. 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 a 20-year veteran of IT and experienced online business professional. He’s an entrepreneur, IT influencer, Microsoft MVP, blogger, trainer and content marketing writer for multiple technology companies. Adam is also the founder of the popular IT career development platform TechSnips. Catch up on Adam’s articles at adamtheautomator.com, connect on LinkedIn, or follow him on Twitter at @adbertram or the TechSnips Twitter account at @techsnips_io.