Pester is a testing and mocking framework for PowerShell that provides tools to write, run, and verify automated tests for PowerShell code and scripts. It supports behavior-driven development (BDD) style test definitions, assertions, mocking, and code coverage measurements, integrating with CI/CD pipelines. It is the de-facto testing framework in PowerShell, widely used to ensure code quality for modules, scripts, DSC configurations, and more.
Features
- Rich assertion library (e.g. Should -Be, Should -Exist, etc.) for specifying expected behavior in tests
- Built-in mocking support to replace or stub out functions or commands during tests
- Code coverage measurement, with export support (e.g. JaCoCo format) for integration in CI/CD
- Test runner capable of producing formatted output, integrating with Visual Studio Code / other tools
- Compatible with multiple versions of PowerShell (Windows PowerShell 5.1, PowerShell 7.x, etc.)
- Signed releases / security aware (certificate changes handled, publisher signing)
Categories
FrameworksLicense
MIT LicenseFollow Pester
nel_h2
Enterprise-grade ITSM, for every business
Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Pester!