Created
November 23, 2022 16:51
-
-
Save trnktms/f19203e0d5a0ef3c671f8cd91d9150f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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