Showing results for Dave Wyatt - Scripting Blog [archived]

Dec 16, 2015
0
0

PowerTip: Test Active Directory Script with Pester

Doctor Scripto
Doctor Scripto

Summary: Use Pester to safely test script changes to Active Directory.  How can I test my Active Directory script without having it make changes to my live domain?  Use Pester’s mocking feature to test your code without using the actual Active Directory cmdlets.

Windows PowerShellPowerTipguest blogger
Dec 16, 2015
1

Unit Testing PowerShell Code with Pester

Doctor Scripto
Doctor Scripto

Summary: Guest blogger, Dave Wyatt, discusses using Pester to analyze small pieces of Windows PowerShell code.    Note   This is a five-part series that includes the following posts: Before we get into the technical details today, let’s define a few terms. There are several categories of automated test...

Windows PowerShellguest bloggerDave Wyatt
Dec 15, 2015
0
0

PowerTip: Connect Pester to Automated System

Doctor Scripto
Doctor Scripto

Summary: Learn how to incorporate Pester into an automated system.  How do I incorporate Pester into an automated system?  Use one of the features in Pester that are built for this purpose: NUnit XML export, -PassThru switch, or the            –EnableExit switch in conjunction with p...

Windows PowerShellPowerTipguest blogger
Dec 15, 2015
0
0

Getting Started with Pester

Doctor Scripto
Doctor Scripto

Summary: Guest blogger, Dave Wyatt explains how to get information back from Pester.    Note   This is a five-part series that includes the following posts: At the end of yesterday’s post, I showed this brief example of a .Tests.ps1 file: Today, we’ll go into more detail about what goes into these tests,...

Windows PowerShellguest bloggerDave Wyatt
Dec 14, 2015
0
0

PowerTip: Get Started with Pester Tests and PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to start a Pester test.  How do I run Pester tests?  Place your tests into a file with a name that ends with .Tests.ps1, and then run the Invoke-Pester cmdlet.

Windows PowerShellPowerTipguest blogger