Created
January 4, 2017 17:22
-
-
Save weiyentan/3c3f3642d6ece11d1f17276fc87cb230 to your computer and use it in GitHub Desktop.
Example of Custom Pester function accepting parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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