Merge pull request #1370 from PowerShell/andschwa/start-pspester

Import Pester from new location
This commit is contained in:
Andy Schwartzmeyer
2016-07-14 11:38:34 -07:00
committed by GitHub
+1 -1
View File
@@ -382,7 +382,7 @@ function Start-PSPester {
[string]$Directory = "$PSScriptRoot/test/powershell"
)
& (Get-PSOutput) -noprofile -c "Import-Module '$PSScriptRoot/src/Modules/Pester'; Invoke-Pester $Flags $Directory/$Tests"
& (Get-PSOutput) -noprofile -c "Import-Module '$PSScriptRoot/src/Modules/Shared/Pester'; Invoke-Pester $Flags $Directory/$Tests"
if ($LASTEXITCODE -ne 0) {
throw "$LASTEXITCODE Pester tests failed"
}