PowerShell
$74.98
Bought separately
$60.00
Bundle Price

PowerShell

About the Bundle

Buy every PowerShell book from Adam Bertram at a 20% discount!

  • Share this bundle
  • Categories

    • DevOps
    • PowerShell
    • Testing

About the Books

The Pester Book

  • 1,504

    Readers

  • 221

    Pages

  • 100%

    Complete

  • PDF

  • EPUB

  • WEB

  • English

"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.

Testimonials

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. In addition to providing the go-to resource for booting up on Pester, I find myself referring back to it often as a reference for some of the more advanced Pester concepts that I need to solve some of our more complex testing scenarios
Brett Hinton

The Pester book is invaluable as standard reference for getting to grips with the Pester concepts as PowerShell testing framework, as well as providing practical examples of how to automate testing your PowerShell code.
Michel de Rooij

If you want to prove your PowerShell scripts are actually doing what they are supposed to, this book is for you. The Pester Book by Adam Bertram will teach you how to utilize Pester for testing your PowerShell code in ways you never thought you could do without trial and error. You’ll learn how to leverage the Pester framework to mock data that can be used to verify your functions, perform infrastructure testing, and much more. This book is one of my favorites and sits next to many other PowerShell books I’ve bought over the years. The Pester Book helped take my scripts to the next level.
Bill Kindle

The Pester book not only gave me an in-depth understanding of the Pester framework; it also taught me a new way of looking at my PowerShell code. The end result was cleaner, more concise code with unit tests to back it up.
Monte Hazboun
Nicholas Getchell

1 reader testimonial

Building a PowerShell Tool

A Mini-Course
  • 85%

    Complete

  • PDF

  • EPUB

  • WEB

  • English

PowerShell's real power comes through in its tool-making abilities. What do I mean by a tool? A tool is a PowerShell script, a module, a function, whatever that helps you perform some management task. That task could be creating a report, gathering information about a computer, creating a company user account, and so on.

PowerShell shines as an automation language. In this eBook built as a PowerShell mini-course, you'll learn how to build an automation tool using PowerShell.

This eBook mini-course will guide you from having nothing to show all the way up to a PowerShell script that can query and return information across all of your servers.

Not only will you learn how to write a PowerShell script but you'll also learn the mindset behind writing a script that will take your PowerShell skills to the next level. You'll see how a PowerShell expert thinks and how he approaches writing a PowerShell tool.

PowerShell Tips to Write By

Building better PowerShell scripts one tip at a time
  • 100%

    Complete

  • PDF

  • EPUB

  • WEB

  • English

Hi,

I'm Adam Bertram. I've been writing PowerShell for over ten years. I was one of the first Microsoft PowerShell MVPs. I am a published author on PowerShell, avid learn PowerShell blogger and have authored dozens of courses on PowerShell. I'm a bit obsessed with this language.

For this eBook, I've teamed up with Bryce Mcdonald, another PowerShell expert. We're bringing you an eBook that covers hundreds of tips and tricks to teach you how to write PowerShell code.

You don't have to waste time watching dozens of courses or poring over hundreds of articles to write better PowerShell. You'll never catch all the tips anyway.

We've boiled down our collective PowerShell experience and knowledge into easily-referenceable, bite-sized form. We've also included dozens of tips from the PowerShell community! This eBook is the biggest collection of tips available to help you write better PowerShell scripts.

-------------------------------------------------

Learn Best Practices

PowerShell is flexible to the developer (maybe a little too flexible). There are dozens of ways to get tasks done. But how do you know it's the best way? See how PowerShell experts solve PowerShell problems in snackable, knowledge nuggets. Don't get immediately bogged down in the specifics.

Discover New PowerShell Articles, Courses, Videos and More

Rather than diving deep into topics, we cover all the best PowerShell tips and tricks in tip form. Not only will you see what's possible, but we'll also give you a link to a hand-picked resource (paid or free). These resources will cover a topic in-depth — no more Googling around for how-to articles!

Think of this book as your gateway to being a PowerShell pro. Discover new resources you may not know exist that go in-depth on topics you'd like to learn more about.

Build Better PowerShell Code One Tip at a Time

Use this book as a reference. Use the book as a guide to help you remember the basics or learn new tricks. Encourage co-workers to buy this book to ensure your entire team writes better code. Learn better ways to write PowerShell one tip at a time!

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub