All languages

PowerShell

You're viewing a free preview. Sign in free to read every script.

Why this exists Scripts that manage servers deserve the same safety net as application code. Pester is PowerShell's test framework, and its mocking means you can test logic like "warn when a disk is nearly full" without…

Testing PowerShell with Pester and Running It from a Jenkins Pipeline

Write a small tested function, test it with Pester 5 using mocks (no real disks needed), produce a JUnit result file, and run the whole thing from a Jenkins stage that fails the build when a test fails.

Sign in free to read this script, along with the rest of the library.

Sign in free