Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
try {
Get-ChildItem .\tests\api-tests\**.ps1 -Recurse | ForEach-Object {
Set-Location -Path $_.Directory
Write-Host "Running test: " .\ $_.Directory.Name \ $_.Name " -> " -NoNewline -Separator ''
(& $_.FullName) ? "Passed" : "Failed"
}
}
catch {
Write-Host "Failed"
throw;
}
finally {
Set-Location -Path $PSScriptRoot
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment