Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created November 23, 2022 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trnktms/f19203e0d5a0ef3c671f8cd91d9150f1 to your computer and use it in GitHub Desktop.
Save trnktms/f19203e0d5a0ef3c671f8cd91d9150f1 to your computer and use it in GitHub Desktop.
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