Skip to content

Commit

Permalink
Fixed Invoke-Pester
Browse files Browse the repository at this point in the history
  • Loading branch information
VertigoRay committed Nov 20, 2020
1 parent 4327ea8 commit bc00166
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,9 @@ Task TestModule -Description "Run Pester Tests and CoeCoverage" -Depends Install
$invokePester.Add('EnableExit', $true)
$currentCulture = Get-Culture

$invokePester | Export-Clixml "${env:Temp}\invokePester.xml"

foreach ($culture in (Get-Content "$($invokePester.Path)\cultures.json" | ConvertFrom-Json)) {
Set-Culture -CultureInfo $culture
$res = & powershell.exe -c "`$invokePester = Import-Clixml `"`${env:Temp}\invokePester.xml`"; Invoke-Pester @invokePester"
$res = Invoke-Pester @invokePester
Write-Host "[BUILD TestModule] Pester Result: $($res | Out-String)" -ForegroundColor Magenta
}
Set-Culture -CultureInfo $currentCulture
Expand Down

0 comments on commit bc00166

Please sign in to comment.