Skip to main content

In this article

Coding Standards/Powershell/Pester

Coding Standards/Powershell/Pester
FieldValue
Kindinstruction
Source.github/instructions/coding-standards/powershell/pester.instructions.md
InvocationApplied automatically to **/*.Tests.ps1
InteractiveNo

What it does

Instructions for Pester testing conventions

When to use it

Use these instructions whenever a .Tests.ps1 file adds or changes Pester coverage, fixtures, mocks, or cleanup. They extend the PowerShell conventions with repository test layout and Pester 5 patterns; run tests through the repository test runner when it is available rather than invoking Pester directly.

Example usage

Provide a concrete example that shows the asset in action, including representative input and the resulting output.