Skip to content

Instantly share code, notes, and snippets.

@weiyentan
Created January 4, 2017 17:22
Show Gist options
  • Save weiyentan/3c3f3642d6ece11d1f17276fc87cb230 to your computer and use it in GitHub Desktop.
Save weiyentan/3c3f3642d6ece11d1f17276fc87cb230 to your computer and use it in GitHub Desktop.
Example of Custom Pester function accepting parameters
function Invoke-CustomPestertest
{
[CmdletBinding()]
param
(
[string]$testpath,
[decimal]$version,
[string]$name
)
Invoke-Pester -Script @{ Path = '$testpath'; Parameters = @{ Name = $name; Version = $version } }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment