github pester/Pester 4.6.0

latest releases: 5.6.0-beta1, 5.5.0, 5.5.0-rc1...
5 years ago

What is new since 4.5.0?

Should -HaveParameter

A new assertion operator -HaveParameter was added that allows you to check function parameters, and their properties like this:

Get-Command "Invoke-WebRequest" | Should -HaveParameter Uri -Mandatory
function f ([String] $Value) { }
Get-Command f | Should -HaveParameter Value -Type String
Get-Command f | Should -Not -HaveParameter Name

Other minor fixes

See the full changelog for more info.

Don't miss a new Pester release

NewReleases is sending notifications on new releases.