Testing with Pester

A Pester test file, named something.Tests.ps1, groups checks in Describe blocks, each It block runs your code and checks one answer with Should, and Invoke-Pester runs them all in seconds, marks each one passed or failed and says what it expected and what it got; TestDrive: gives every test a throwaway folder for its files.

Updated

Cheat sheet for the lesson Testing with Pester: A Pester test file, named something.Tests.ps1, groups checks in Describe blocks, each It block runs your code and checks one answer with Should, and Invoke-Pester runs them all in seconds, marks each one passed or failed and says what it expected and…
Category
PowerShell
Level
Freelancer
Tags
describe-and-it, invoke-pester, pester, powershell, should, testdrive, unit-test