Pester 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pester --version 3.0.0                
NuGet\Install-Package Pester -Version 3.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pester" Version="3.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pester --version 3.0.0                
#r "nuget: Pester, 3.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pester as a Cake Addin
#addin nuget:?package=Pester&version=3.0.0

// Install Pester as a Cake Tool
#tool nuget:?package=Pester&version=3.0.0                

Pester provides a framework for running BDD style Tests to execute and validate PowerShell commands inside of PowerShell and offers a powerful set of Mocking Functions that allow tests to mimic and mock the functionality of any command inside of a piece of powershell code being tested. Pester tests can execute any command or script that is accesible to a pester test file. This can include functions, Cmdlets, Modules and scripts. Pester can be run in ad hoc style in a console or it can be integrated into the Build scripts of a Continuous Integration system.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Pester:

Package Downloads
Ops.Resource.Core.Lan.Windows

Provides the core cookbooks and scripts that are used to configure new Windows machines on a local network.

Ops.Resource.Core.Azure.Windows

Provides the core cookbooks and scripts that are used to create new Windows machine images on Azure.

PesterForPackageManagerConsole

Expose Pester to the Package Manager Console inside Visual Studio

Ops.Resource.Core.HyperV.Image.Windows

Provides the core cookbooks and scripts that are used to configure new Windows install on a Hyper-V virtual hard drive template.

Ops.Resource.Core.HyperV.Resource.Windows

Provides the scripts that are used to create a new Windows machine on Hyper-V from a virtual hard drive template.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Pester:

Repository Stars
MichaelGrafnetter/DSInternals
Directory Services Internals (DSInternals) PowerShell Module and Framework
gsoft-inc/dynamite
C# toolkit to help you build maintainable SharePoint 2013 farm solutions
Version Downloads Last updated
5.5.0 29,895 6/27/2023
5.4.1 8,304 4/5/2023
5.4.0 6,442 1/10/2023
5.3.3 8,485 4/29/2022
5.3.2 958 4/22/2022
5.3.1 4,429 9/21/2021
5.3.0 1,017 8/17/2021
5.2.2 1,629 5/27/2021
5.2.1 754 5/13/2021
5.2.0 1,392 5/6/2021
5.1.1 38,457 12/11/2020
5.1.0 890 11/25/2020
5.0.4 2,436 9/3/2020
5.0.4-beta1 541 8/13/2020
4.10.2-beta1 317 5/29/2021
4.10.1 175,214 2/7/2020
4.10.0 1,399 2/1/2020
4.9.0 269,487 9/8/2019
4.8.1 38,863 5/11/2019
4.8.0 1,489 5/1/2019
4.7.3 2,662 3/23/2019
4.7.2 1,606 3/8/2019
4.7.1 5,350 3/5/2019
4.7.0 920 3/3/2019
4.4.1 175,248 9/20/2018
4.4.0 5,055 7/20/2018
4.4.0-beta2 999 7/8/2018
4.4.0-beta 996 5/6/2018
4.3.1 52,922 2/20/2018
4.2.0 1,347 2/18/2018
4.2.0-alpha3 1,031 12/17/2017
4.2.0-alpha2 1,022 12/12/2017
4.1.1 3,631 12/9/2017
4.1.0 1,306 11/21/2017
4.0.8 22,783 9/15/2017
4.0.7 1,257 9/13/2017
4.0.6-rc 963 8/17/2017
4.0.5-rc 2,032 7/25/2017
4.0.3-rc 4,754 3/22/2017
4.0.2-rc 1,007 1/18/2017
4.0.1-rc 1,007 1/18/2017
4.0.0-rc1 986 1/18/2017
3.4.6 170,105 1/13/2017
3.4.3 16,122 8/26/2016
3.4.2 1,889 8/2/2016
3.4.1 2,225 7/22/2016
3.4.0 25,216 3/1/2016
3.3.14 9,673 12/16/2015
3.3.13 1,502 12/10/2015
3.3.12 11,111 12/8/2015
3.3.11 16,755 9/8/2015
3.3.10 21,742 8/14/2015
3.3.9 25,561 5/24/2015
3.3.8 2,014 4/15/2015
3.3.7 1,544 4/15/2015
3.3.6 2,329 3/19/2015
3.3.5 2,204 1/23/2015
3.3.4 1,516 1/22/2015
3.3.3 1,476 1/22/2015
3.3.2 1,438 1/19/2015
3.3.1 1,597 1/12/2015
3.3.0 1,578 1/10/2015
3.2.0 3,769 12/3/2014
3.1.1 1,912 10/29/2014
3.0.3 1,756 10/13/2014
3.0.2 5,201 9/8/2014
3.0.1.1 1,830 8/28/2014
3.0.0 1,777 8/21/2014
3.0.0-beta2 1,322 7/4/2014
3.0.0-beta 1,370 6/25/2014
2.1.0 3,636 6/15/2014
2.0.4 2,031 3/9/2014
2.0.3 9,674 4/16/2013
2.0.2 1,678 2/28/2013
2.0.1 1,692 2/3/2013
1.2.1 1,599 2/3/2013
1.1.1 1,666 12/29/2012
1.1.0 1,829 11/4/2012
1.0.6 1,703 8/12/2012
1.0.5 1,679 5/6/2012
1.0.3 2,197 5/29/2011
1.0.2 1,771 5/24/2011
1.0.1 1,949 5/1/2011
1.0.0 2,191 3/14/2011

3.0.0 (August 21, 2014)
Fix code coverage tests so they do not left breakpoints set [GH-149]
Add better output for hashtables in code coverage [GH-150]
Fix Invoke-Pester -OutputXml usage of relative paths
Remove Validate-Xml function
Remove legacy object adaptations support
Remove tests testing usage of the global scope
Add function name to Code coverage output [GH-152]
Suppress pipeline output in Context / Describe [GH-155]
Coverage Output Update [GH-156]
Add initial implementation of BeforeEach / AfterEach [GH-158]
CodeCoverage of files containing DSC Configurations [GH-163]
Rolling back some earlier Pester Scope changes [GH-164]
Legacy expectations cleanup [GH-165]
Invoke-Pester tests path fix [GH-166]
Assert-MockCalled default ModuleName fix. [GH-167]
Output exception source when test fails [GH-147]
Fix for PesterThrowFailureMessage on PowerShell 2.0. [GH-171]
Pester.bat no longer enables StrictMode. [GH-172]
Fixed default behavior of fixture parameter in Describe and Context. [GH-174]
Syntax errors in test files, as well as terminating errors from Describe or Context blocks are now treated as failed tests. [GH-168]
Mock lifetime is no longer tied to It blocks. [GH-176]
Add module manifest
Added multiple lines to failure messages from Should Be and Should BeExactly. Updated console output code to support blank lines in failure messages and stack traces. [GH-185]
Fixed stack trace information when test failures come from inside InModuleScope blocks, or from something other than a Should assertion. [GH-183]
Fixed stack trace information from Describe and Context block errors in PowerShell 2.0. [GH-186]
Fixed a problem with parameter / argument resolution in mocked cmdlets / advanced functions. [GH-187]
Improved error reporting when Pester commands are called outside of a Describe block. [GH-188]
Extensive updates to help files and comment-based help for v3.0 release. [GH-190]


3.0.0-beta2 (July 4, 2014)
Add code coverage
Fix TestName
Fix direct execution of tests when the script is dot-sourced to global scope [GH-144]
Fix mock parameter filter in strict mode [GH-143]
Fix nUnit schema compatibility
Fix special characters in nUnit output


3.0.0-beta (June 24, 2014)
Add full support for module mocking
Isolate Pester internals from tested code
Tests.ps1 files can be run directly
Add It scope to TestDrive
Add It scope to Mock
Add Scope parameter to Assert-MockCalled
Measure test time more precisely