Add PassThru support to Start-PSPester (#3205)

This commit is contained in:
Kevin Marquette 2017-03-06 13:13:34 -08:00 committed by Travis Plunk
parent b043b444db
commit f29b99ec6a

View file

@ -683,7 +683,8 @@ function Start-PSPester {
[string]$powershell = (Join-Path $binDir 'powershell'),
[string]$Pester = ([IO.Path]::Combine($binDir, "Modules", "Pester")),
[switch]$Unelevate,
[switch]$Quiet
[switch]$Quiet,
[switch]$PassThru
)
# we need to do few checks and if user didn't provide $ExcludeTag explicitly, we should alternate the default
@ -747,6 +748,9 @@ function Start-PSPester {
if ( $Quiet ) {
$Command += "-Quiet "
}
if ( $PassThru ) {
$Command += "-PassThru "
}
$Command += "'" + $Path + "'"
if ($Unelevate)