Add -noprofile to Start-PSPester

This commit is contained in:
Andrew Schwartzmeyer 2016-05-11 14:11:53 -07:00
parent 7f491beabb
commit e387961c31

View File

@ -315,7 +315,7 @@ function Start-PSPester {
[string]$Directory = "$PSScriptRoot/test/powershell"
)
& (Get-PSOutput) -c "Invoke-Pester $Flags $Directory/$Tests"
& (Get-PSOutput) -noprofile -c "Invoke-Pester $Flags $Directory/$Tests"
if ($LASTEXITCODE -ne 0) {
throw "$LASTEXITCODE Pester tests failed"
}