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

![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…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/fbff6f8e4d694315a6b134b6340584fa.webp)

- Category: PowerShell
- Level: Freelancer
- Tags: describe-and-it, invoke-pester, pester, powershell, should, testdrive, unit-test
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-pester-cheat-sheet
