PesterForge

What each
command does.

PesterForge writes Pester tests for your PowerShell functions. Five commands cover the work: generate, audit, profile, scaffold, run. Each section below covers one command and the exact line you type.

01 Generate

New-PesterTests generates a ready-to-run Pester test file for a function or script. This is the product's core action. Point it at a .ps1 file and you get a test file back.

New-PesterTests -ScriptPath .\Public\Get-Something.ps1
02 Audit

Get-PesterCoverage scans a module or folder and reports which functions have tests and where the coverage gaps are. Run it on an existing module first, before you generate anything, so you know how much testing work you are actually looking at.

Get-PesterCoverage -ModuleRoot .
03 Profile

Measure-FunctionTestability inspects a function and reports its parameters, outputs, error types, and how testable it is. New-PesterTests uses the same analysis when it generates, and a low-scoring function gets an informational banner in its generated test file.

Measure-FunctionTestability -ScriptPath .\Public\Get-Something.ps1
04 Scaffold

New-TestProject creates a standard test-project folder layout.

New-TestProject -ProjectRoot .

New-PfTestFile creates a starter test file in the right place with the right name. By default that is Tests\Unit\<FunctionName>.Tests.ps1 under your project root. Profile the function first, then hand the profile in:

$profile = Measure-FunctionTestability -ScriptPath .\Public\Get-Something.ps1
New-PfTestFile -FunctionProfile $profile
05 Run

Start-TestRun runs your tests with PesterForge's recommended settings. Pick a category (Static, Unit, Integration, Acceptance, or All) and you get a pass/fail/skip summary back.

Start-TestRun -ProjectRoot . -Category Unit

Start-TestRun and New-TestProject ship as tool scripts alongside the module. The other three commands load with Import-Module PesterForge.

06 What's free, what's paid

The PowerShell module is free. That covers all five commands on this page.

PesterForge also runs as an MCP server, so an AI agent can call it. On the server, four tools are free and two require a paid plan:

SurfaceToolsCost
PowerShell moduleAll five commands aboveFree
MCP serverprofile_function, audit_coverage, get_version, run_testsFree
MCP servercreate_test_file, scaffold_projectPaid plan

Server details and plans are on the PesterForge MCP page. To try the module end to end, read the quick start.