Skip to Main Content
Learn PowerShell Scripting in a Month of Lunches
book

Learn PowerShell Scripting in a Month of Lunches

by Jeffery Hicks, Don Jones
December 2017
Beginner content levelBeginner
352 pages
10h 31m
English
Manning Publications
Content preview from Learn PowerShell Scripting in a Month of Lunches

Chapter 20. Pestering your script

As we move into a DevOps-y world, one of the things you’ll need to start thinking about is how you’ll test your scripts. Here’s the deal: Nobody likes a broken script in production. And although you might run a few tests on your script, you—or someone else—might also modify your script at some point, necessitating a retest. Or, you might find some odd condition under which your script fails—well, you certainly don’t want to forget to test that condition again in the future, do you? In this chapter, we’ll talk about automated unit testing for PowerShell scripts.

20.1. The vision

Here’s where we want to get you:

  1. You write some code, or modify some old code.
  2. You check your code into a source control repository. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Windows PowerShell in a Month of Lunches, Third Edition

Learn Windows PowerShell in a Month of Lunches, Third Edition

Don Jones

Publisher Resources

ISBN: 9781617295096Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link