Invoke-Pester

noun

say it: “in-VOHK PES-ter” /ɪnˈvoʊk ˈpɛstɚ/

The PowerShell command that runs Pester tests and reports which passed and which failed.

What does Invoke-Pester do?

Invoke-Pester runs your tests. With no path it finds every file ending in .Tests.ps1 in the folder and below; -Output Detailed lists each test with [+] for passed and [-] for failed, and a summary at the end.

Invoke-Pester -Output Detailed
# [+] reads every song in the file 15ms
# [-] reads a track over an hour long 51ms
# Tests Passed: 3, Failed: 1, Skipped: 0, Inconclusive: 0, NotRun: 0

In a sentence

  • “Sam runs Invoke-Pester after every change to the module.”
  • “Invoke-Pester -Output Detailed showed three passes and one failure.”

Level: Freelancer · More PowerShell terms at this level

Updated