Framework
pester/Pester avatar
pester/Pester

Pester says you should stop bypassing its signing check, and still tells you to bypass it

Pester is the ubiquitous test and mock framework for PowerShell.

3,386 stars478 forksPowerShellNOASSERTION

At a glance

What is it?
The test and mock framework for PowerShell, built on hosted CI and distributed through a module gallery, with one individual in Prague having signed its releases for roughly ten years. Its front page tells you a flag is no longer needed, and a callout below it says that flag is mandatory for anyone upgrading across one particular version.
Who is it for?
This suits anyone writing PowerShell who wants assertions, mocking and coverage without leaving the shell, particularly on Linux or macOS where PowerShell is the only thing installed anyway. It does not suit someone who wants a test runner that speaks their build system's native formats without translation.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository last received commits 12 days ago.
What is it written in?
Mainly PowerShell, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • pester/Pester3,386 ★ · +40
Star history
Repository2026-09-242026-11-24
pester/Pester3.3k3.4k

40 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

One flag the readme tells you not to use, and still tells you to use

The top of this readme has two callouts about signing, and on their face they contradict each other.

The first says the project is now signed, and that a publisher check bypass flag should no longer be used when installing from the module gallery on Windows 10.

The second says that upgrading to one particular version will show a certificate changed error, that this is because a root certificate changed, and that you have to specify the bypass flag to update.

Both are true, and the difference is the version you are coming from. If you are installing current, the signature verifies and the flag is redundant. If your existing copy was signed under the previous certificate, the updater compares the two and refuses, and the flag is the documented way through.

So this is not a contradiction so much as a migration note that never expires, and it sits above the documentation link rather than in the installation section, which is where a reader looking to install would look.

The practical consequence is that a team upgrading from an older copy hits an error whose message says the certificate changed, and the fix is a flag the same page describes as something you should stop using.

One person in Prague has signed ten years of releases

The readme carries a table of signing certificates going back to 2016, and the note underneath it is the interesting part.

It says that in all cases except one, the issuer for the certificate is a single named individual, with a city and country in the name fields. The exception is one old version that was signed directly by the platform vendor, and that row is the only one in the table issued by them.

Every other row is issued by one of two commercial certificate authorities, and every other row is issued to the same person.

That is worth stating plainly for a package that ships inside operating system images and gets installed with a force flag. The trust model of the ecosystem rests on one individual's key and one certificate authority's willingness to keep issuing to them.

The table also has a gap: one version range is listed with no certificate found, in both the authority and the thumbprint column. That range is not a formatting slip, it is a period when the releases were not signed, which is exactly the period an installer has no way to verify.

The certificate table contradicts itself on one version

Reading the certificate table closely, the ranges do not quite add up, and the inconsistency lands on a single version.

The rows run, in order: everything from an alpha of the current major onward, one range covering the last five or so minor versions, two older ranges, a range with no certificate found, and then a single version at the end with a platform vendor certificate.

The problem is that the version with the vendor certificate falls inside the range above it that says no certificate was found. One row says a version was not signed and the next row says that version was signed.

It is possible the ranges are approximate and the intent is clear: unsigned for a long stretch, vendor signed for one release, individually signed from a particular version onward. But this table is the reference a user consults when an install fails on a signature, and an entry that says both no certificate and a certificate is not usable for that.

The note underneath partly papers over it by singling out the one version signed directly by the vendor, which is the version that contradicts the range above it.

The example on the front page stops before its assertion

The readme leads with a code sample, and the sample is incomplete.

It sets up a block that runs before the tests, defines a function that filters a list of eight planets by name, and then opens a block describing the function and a nested block asserting that with no parameters it lists all eight. The example ends on the line that assigns the result to a variable, with no comparison and no closing brackets.

So the one piece of code a new user is most likely to copy does not run as printed.

The instructions around it are fine, and short. Save the file with the framework's test suffix, run the framework's command against it, or press a run key in a code editor.

There is also a longer, annotated version linked in the repository's documentation folder, described as production ready, which is where a reader who wants working code should go.

What the truncated sample does show is the shape of the framework, and that shape is the selling point: setup in one block, grouping in a second, one assertion per innermost block.

A framework that ships with the operating system, and a guide that overwrites it

One line in the installation section describes a situation that catches people out.

It says an earlier major version of the framework comes preinstalled with the operating system, and then recommends updating it, with the instruction to run one PowerShell command as administrator:

powershell
Install-Module -Name Pester -Force

So the default state of a supported machine is a version of the tool the project considers old enough to replace, the replacement is installed globally with a force flag, and the force flag is what makes it overwrite the copy the operating system owns.

That is fine as instructions and awkward as a design. The framework a user gets by accident is not the framework the documentation describes, the difference is a major version, and the two have different behaviour and a different signing certificate, which is what produced the certificate-changed error in the first place.

The compatibility statement beside it is wider than people expect. It says it runs on Windows, Linux and macOS because PowerShell does, and is compatible with one legacy PowerShell line and one current line and newer, with nothing in between.

It speaks three foreign formats, and one of them is a CI file

A tool that only prints to a terminal is a tool that every build server has to be taught about. This one has solved that three different ways.

The first is test output in a format that one IDE ecosystem consumes, offered as something any tool reading that format will accept, alongside named integrations with two major editors.

The second is coverage. It measures coverage and exports it in a format used primarily by JVM build tooling, which is a long way from PowerShell but is what most build servers already know how to render.

The third is the most unusual: the readme gives you a complete CI configuration file to commit, with an image list spanning a Windows build image and a Unix one, a single line to install the framework, a build step switched off, and a test step that invokes it in its continuous integration mode. It even tells you that if you do not need to test against the cross-platform runtime you can delete the Unix line.

It names five build servers as supported and then hands you a file for one of them.

The result is a framework whose integration surface is mostly other tools' file formats.

Two CI systems, and the project lints its own scripts

The repository layout says this is a project with a build system of its own, which is unusual for a test framework but reasonable for one distributed as a module.

There are two CI definitions. The readme says the framework itself is built on hosted actions, and the tree also contains a pipeline definition for publishing, so building and publishing run on different systems.

There is a build script and a test script at the root, and a version file that pins the runtime the build expects. There is a development container configuration and an editor configuration, so a contributor can get an environment without installing anything.

The part worth naming is the pair of static analysis artefacts. There is a settings file for the PowerShell script analyser, and a directory of custom analyser rules written for this project. A PowerShell test framework is analysing PowerShell, and contributing rules to the analyser that its own codebase trips.

There are also the files a mature project accumulates rather than designs: a backers file, a support file, a security file, a conduct file, a third party notices file, and a coding agents instruction file.

Editorial conclusion

This suits anyone writing PowerShell who wants assertions, mocking and coverage without leaving the shell, particularly on Linux or macOS where PowerShell is the only thing installed anyway. It does not suit someone who wants a test runner that speaks their build system's native formats without translation. Before you adopt it, check three things: which PowerShell you are on, because the readme supports the 5.1 line and the 7.4 line and nothing in between; whether you are upgrading across the release where the signing certificate changed, because that path still requires a publisher check bypass; and whether the framework already on your machine is the version you think it is, since an older major line ships preinstalled with the operating system.

Frequently asked questions

what is pester powershell

The test and mock framework for PowerShell, distributed mainly through the PowerShell Gallery and built on hosted continuous integration. It provides a test runner with formatted output, a set of assertions, mocking built in with call verification, and code coverage export in a format build servers already read. It runs on Windows, Linux and macOS because PowerShell does, and supports Windows PowerShell 5.1 as well as PowerShell 7.4 and newer.

how to install pester

With a single module install command using a force flag, which the readme says to run as administrator. The force matters because an older major version of the framework comes preinstalled with Windows 10 and the project recommends replacing it. For anything other than that operating system, or if you hit problems, the readme points at a fuller installation and update guide on the documentation site.

how to use pester in powershell

Define setup in BeforeAll, group tests with Describe and write assertions in It blocks using Should. Save the file with a .Tests.ps1 suffix and run Invoke-Pester against it. The repository README includes a complete Get-Planet example with assertions and links to a longer annotated version.

Do I need SkipPublisherCheck to install Pester?

Not for a current install. The readme says the project is signed now and that the flag should no longer be needed when installing from the module gallery on Windows 10. You still need it if you are upgrading across the release where the signing certificate changed, because the updater will otherwise stop with a certificate-changed error. The readme includes a table of certificates and thumbprints by version range, one range of which has no certificate at all.

Official sources

  1. Issues
  2. pester/Pester on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/pester-pester.svg)](https://hysenlabs.com/projects/pester-pester)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/pester-pester.svg)](https://hysenlabs.com/projects/pester-pester)

Was this useful?